	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_request_ibss_scan    ## -- Begin function ieee80211_request_ibss_scan
	.p2align	4, 0x90
_ieee80211_request_ibss_scan:           ## @ieee80211_request_ibss_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	(%rdi), %r12
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	%r12, %rdi
	callq	_mutex_lock
	cmpq	$0, 32(%r12)
	je	LBB0_1
LBB0_17:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	je	LBB0_2
## %bb.14:
	movq	_IEEE80211_CHAN_NO_IBSS@GOTPCREL(%rip), %rax
	movq	_IEEE80211_CHAN_DISABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	andl	(%rax), %edi
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_17
## %bb.15:
	movq	%r13, %r14
	movq	8(%r12), %rax
	movq	16(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movl	$1, %ebx
	jmp	LBB0_16
LBB0_2:
	movq	_IEEE80211_NUM_BANDS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testq	%r8, %r8
	movq	%r13, %r14
	je	LBB0_3
## %bb.4:
	movq	_IEEE80211_CHAN_NO_IBSS@GOTPCREL(%rip), %rax
	movq	_IEEE80211_CHAN_DISABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	orl	(%rax), %r9d
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rdx
	cmpq	%r8, %rdx
	je	LBB0_13
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax,%rdx,8), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	-4(,%rsi,4), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rax), %rax
	testl	%r9d, (%rax,%rdi)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	addq	%rdi, %rax
	movq	8(%r12), %rcx
	movq	16(%rcx), %rcx
	movslq	%ebx, %rbx
	movq	%rax, (%rcx,%rbx,8)
	incl	%ebx
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	cmpq	%rdi, %rsi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax,%rdx,8), %rax
	addq	$4, %rdi
	jmp	LBB0_8
LBB0_3:
	xorl	%ebx, %ebx
LBB0_13:
	xorl	%edi, %edi
	testl	%ebx, %ebx
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_17
LBB0_16:
	movq	8(%r12), %rax
	movl	%ebx, (%rax)
	leaq	16(%r12), %rcx
	movq	%rcx, 8(%rax)
	movl	$1, 4(%rax)
	movl	20(%r12), %edi
	movq	_IEEE80211_MAX_SSID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movq	8(%r12), %rax
	movq	8(%rax), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	(%r14), %rax
	movq	8(%rax), %rsi
	movq	%r14, %rdi
	callq	___ieee80211_start_scan
	movl	%eax, %r15d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IEEE80211_NUM_BANDS,4,2        ## @IEEE80211_NUM_BANDS
	.comm	_IEEE80211_CHAN_NO_IBSS,4,2     ## @IEEE80211_CHAN_NO_IBSS
	.comm	_IEEE80211_CHAN_DISABLED,4,2    ## @IEEE80211_CHAN_DISABLED
	.comm	_IEEE80211_MAX_SSID_LEN,4,2     ## @IEEE80211_MAX_SSID_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_request_ibss_scan    ; -- Begin function ieee80211_request_ibss_scan
	.p2align	2
_ieee80211_request_ibss_scan:           ; @ieee80211_request_ibss_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	x24, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w23, w8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_2
LBB0_1:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x23
	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
LBB0_2:
	cbz	x24, LBB0_5
; %bb.3:
	ldr	w8, [x24]
Lloh3:
	adrp	x9, _IEEE80211_CHAN_NO_IBSS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_CHAN_NO_IBSS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _IEEE80211_CHAN_DISABLED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IEEE80211_CHAN_DISABLED@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	and	w0, w9, w8
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_1
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #16]
	str	x24, [x8]
	mov	w24, #1
	b	LBB0_17
LBB0_5:
Lloh9:
	adrp	x8, _IEEE80211_NUM_BANDS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_NUM_BANDS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cbz	w8, LBB0_15
; %bb.6:
	mov	x9, #0
	mov	w24, #0
Lloh12:
	adrp	x10, _IEEE80211_CHAN_NO_IBSS@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IEEE80211_CHAN_NO_IBSS@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _IEEE80211_CHAN_DISABLED@GOTPAGE
Lloh16:
	ldr	x11, [x11, _IEEE80211_CHAN_DISABLED@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	orr	w10, w11, w10
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_16
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x11, [x19, #24]
	ldr	x11, [x11]
	ldr	x13, [x11, x9, lsl #3]
	cbz	x13, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w12, [x13]
	cmp	w12, #1
	b.lt	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x11, #0
	lsl	x12, x12, #2
	sub	x12, x12, #4
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x13, [x13, #8]
	add	x13, x13, x11
	ldr	w14, [x13]
	tst	w10, w14
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x14, [x19, #8]
	ldr	x14, [x14, #16]
	str	x13, [x14, w24, sxtw #3]
	add	w24, w24, #1
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=2
	cmp	x12, x11
	b.eq	LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x13, [x19, #24]
	ldr	x13, [x13]
	ldr	x13, [x13, x9, lsl #3]
	add	x11, x11, #4
	b	LBB0_11
LBB0_15:
	mov	w24, #0
LBB0_16:
	cmp	w24, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_1
LBB0_17:
	ldr	x8, [x19, #8]
	add	x9, x19, #16
	str	x9, [x8, #8]
	mov	w9, #1
	stp	w24, w9, [x8]
	ldr	w0, [x19, #20]
Lloh18:
	adrp	x8, _IEEE80211_MAX_SSID_LEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IEEE80211_MAX_SSID_LEN@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_memcpy
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	str	w21, [x8]
	ldr	x8, [x20]
	ldr	x1, [x8, #8]
	mov	x0, x20
	bl	___ieee80211_start_scan
	mov	x23, x0
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IEEE80211_NUM_BANDS,4,2        ; @IEEE80211_NUM_BANDS
	.comm	_IEEE80211_CHAN_NO_IBSS,4,2     ; @IEEE80211_CHAN_NO_IBSS
	.comm	_IEEE80211_CHAN_DISABLED,4,2    ; @IEEE80211_CHAN_DISABLED
	.comm	_IEEE80211_MAX_SSID_LEN,4,2     ; @IEEE80211_MAX_SSID_LEN
.subsections_via_symbols
