	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mac80211_hwsim_hw_scan
_mac80211_hwsim_hw_scan:                ## @mac80211_hwsim_hw_scan
	.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	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	leaq	8(%r13), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	$1, %edi
	cmpq	$0, 48(%r13)
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, 40(%r13)
	setne	%dil
LBB0_2:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movq	%r12, 40(%r13)
	movq	%rbx, 32(%r13)
	movq	$0, 24(%r13)
	movq	_NL80211_SCAN_FLAG_RANDOM_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	16(%r13), %edi
	testl	%eax, (%r12)
	je	LBB0_6
## %bb.5:
	movl	4(%r12), %edx
	movl	8(%r12), %esi
	callq	_get_random_mask_addr
	jmp	LBB0_7
LBB0_6:
	movl	(%rbx), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
LBB0_7:
	movl	12(%r13), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wiphy_dbg
	movl	4(%r13), %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_ieee80211_queue_delayed_work
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_NL80211_SCAN_FLAG_RANDOM_ADDR,4,2 ## @NL80211_SCAN_FLAG_RANDOM_ADDR
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hwsim hw_scan request\n"

	.no_dead_strip	_mac80211_hwsim_hw_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mac80211_hwsim_hw_scan
_mac80211_hwsim_hw_scan:                ; @mac80211_hwsim_hw_scan
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x2
	mov	x23, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	add	x21, x19, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_3
; %bb.1:
	mov	w0, #1
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_2:
	mov	x0, x21
	bl	_mutex_unlock
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_3:
	ldr	x8, [x19, #40]
	cmp	x8, #0
	cset	w0, ne
	bl	_WARN_ON
	cbnz	x0, LBB0_2
LBB0_4:
	stp	x23, x22, [x19, #32]
	str	xzr, [x19, #24]
	ldr	w8, [x22]
Lloh3:
	adrp	x9, _NL80211_SCAN_FLAG_RANDOM_ADDR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_SCAN_FLAG_RANDOM_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	w0, [x19, #16]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldp	w2, w1, [x22, #4]
	bl	_get_random_mask_addr
	b	LBB0_7
LBB0_6:
	ldr	w1, [x23]
Lloh6:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_memcpy
LBB0_7:
	ldr	w0, [x19, #12]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x21
	bl	_mutex_unlock
	ldr	w0, [x20]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wiphy_dbg
	ldr	w0, [x19, #4]
	mov	x1, x19
	mov	w2, #0
	bl	_ieee80211_queue_delayed_work
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_NL80211_SCAN_FLAG_RANDOM_ADDR,4,2 ; @NL80211_SCAN_FLAG_RANDOM_ADDR
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hwsim hw_scan request\n"

	.no_dead_strip	_mac80211_hwsim_hw_scan
.subsections_via_symbols
