	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_mac_addr_rand_scan_set    ## -- Begin function wpas_mac_addr_rand_scan_set
	.p2align	4, 0x90
_wpas_mac_addr_rand_scan_set:           ## @wpas_mac_addr_rand_scan_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	%esi, %ebx
	movl	(%rdi), %ecx
	movl	%ecx, %eax
	notl	%eax
	testl	%eax, %esi
	jne	LBB0_1
## %bb.2:
	movq	%rdx, %r13
	movq	%rdi, %r14
	movl	%ebx, %esi
	callq	_wpas_mac_addr_rand_scan_clear
	testq	%r13, %r13
	je	LBB0_3
## %bb.4:
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%edi, %edi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_os_memcpy
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	leaq	(%r15,%rdx,4), %rdi
	movq	%r12, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcpy
	jmp	LBB0_7
LBB0_1:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %eax
	jmp	LBB0_14
LBB0_3:
	xorl	%r15d, %r15d
LBB0_7:
	movq	_MAC_ADDR_RAND_SCAN@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_9
## %bb.8:
	leaq	24(%r14), %rax
	jmp	LBB0_13
LBB0_9:
	movq	_MAC_ADDR_RAND_SCHED_SCAN@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_11
## %bb.10:
	leaq	16(%r14), %rax
	jmp	LBB0_13
LBB0_5:
	movl	$-1, %eax
	jmp	LBB0_14
LBB0_11:
	movq	_MAC_ADDR_RAND_PNO@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_15
## %bb.12:
	leaq	8(%r14), %rax
LBB0_13:
	movq	%r15, (%rax)
	orl	%ebx, 4(%r14)
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r15, %rdi
	callq	_os_free
	movl	$-1, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"scan: MAC randomization type %u != supported=%u"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_MAC_ADDR_RAND_SCAN,4,2         ## @MAC_ADDR_RAND_SCAN
	.comm	_MAC_ADDR_RAND_SCHED_SCAN,4,2   ## @MAC_ADDR_RAND_SCHED_SCAN
	.comm	_MAC_ADDR_RAND_PNO,4,2          ## @MAC_ADDR_RAND_PNO
L_.str.1:                               ## @.str.1
	.asciz	"scan: Invalid MAC randomization type=0x%x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_mac_addr_rand_scan_set    ; -- Begin function wpas_mac_addr_rand_scan_set
	.p2align	2
_wpas_mac_addr_rand_scan_set:           ; @wpas_mac_addr_rand_scan_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	ldr	w8, [x0]
	bics	wzr, w1, w8
	b.ne	LBB0_4
; %bb.1:
	mov	x22, x3
	mov	x23, x2
	mov	x20, x0
	mov	x1, x19
	bl	_wpas_mac_addr_rand_scan_clear
	cbz	x23, LBB0_5
; %bb.2:
Lloh0:
	adrp	x24, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x24]
	lsl	w0, w8, #1
	bl	_os_malloc
	cbz	x0, LBB0_10
; %bb.3:
	mov	x21, x0
	ldr	w2, [x24]
	mov	x1, x23
	bl	_os_memcpy
	ldrsw	x2, [x24]
	add	x0, x21, x2, lsl #2
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_os_memcpy
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x9, _MSG_INFO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MSG_INFO@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_14
LBB0_5:
	mov	x21, #0
LBB0_6:
Lloh7:
	adrp	x8, _MAC_ADDR_RAND_SCAN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAC_ADDR_RAND_SCAN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_8
; %bb.7:
	add	x8, x20, #24
	b	LBB0_13
LBB0_8:
Lloh10:
	adrp	x8, _MAC_ADDR_RAND_SCHED_SCAN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAC_ADDR_RAND_SCHED_SCAN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_11
; %bb.9:
	add	x8, x20, #16
	b	LBB0_13
LBB0_10:
	mov	w0, #-1
	b	LBB0_14
LBB0_11:
Lloh13:
	adrp	x8, _MAC_ADDR_RAND_PNO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MAC_ADDR_RAND_PNO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_15
; %bb.12:
	add	x8, x20, #8
LBB0_13:
	mov	w0, #0
	str	x21, [x8]
	ldr	w8, [x20, #4]
	orr	w8, w8, w19
	str	w8, [x20, #4]
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_15:
Lloh16:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_wpa_printf
	mov	x0, x21
	bl	_os_free
	mov	w0, #-1
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"scan: MAC randomization type %u != supported=%u"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_MAC_ADDR_RAND_SCAN,4,2         ; @MAC_ADDR_RAND_SCAN
	.comm	_MAC_ADDR_RAND_SCHED_SCAN,4,2   ; @MAC_ADDR_RAND_SCHED_SCAN
	.comm	_MAC_ADDR_RAND_PNO,4,2          ; @MAC_ADDR_RAND_PNO
l_.str.1:                               ; @.str.1
	.asciz	"scan: Invalid MAC randomization type=0x%x"

.subsections_via_symbols
