	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1271_cmd_build_ap_probe_req  ## -- Begin function wl1271_cmd_build_ap_probe_req
	.p2align	4, 0x90
_wl1271_cmd_build_ap_probe_req:         ## @wl1271_cmd_build_ap_probe_req
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_wl12xx_wlvif_to_vif
	testq	%r15, %r15
	jne	LBB0_3
## %bb.1:
	movl	(%r14), %edi
	movq	%rax, %rsi
	callq	_ieee80211_ap_probereq_get
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	_DEBUG_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wl1271_debug
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	(%rcx,%rax,4), %esi
	movq	%r14, %rdi
	callq	_wl1271_tx_min_rate_get
	movq	(%rbx), %rcx
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rdx
	movl	8(%rbx), %esi
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.5:
	movq	_CMD_TEMPL_CFG_PROBE_REQ_2_4@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_CMD_TEMPL_CFG_PROBE_REQ_5@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %edx
	movl	(%r15), %r8d
	movl	4(%r15), %ecx
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	xorl	%r9d, %r9d
	callq	_wl1271_cmd_template_set
	testl	%eax, %eax
	jns	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	_wl1271_error
	jmp	LBB0_8
LBB0_2:
	xorl	%r15d, %r15d
LBB0_8:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_SCAN,4,2                 ## @DEBUG_SCAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set ap probe request template"

	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_CMD_TEMPL_CFG_PROBE_REQ_2_4,4,2 ## @CMD_TEMPL_CFG_PROBE_REQ_2_4
	.comm	_CMD_TEMPL_CFG_PROBE_REQ_5,4,2  ## @CMD_TEMPL_CFG_PROBE_REQ_5
L_.str.1:                               ## @.str.1
	.asciz	"Unable to set ap probe request template."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1271_cmd_build_ap_probe_req  ; -- Begin function wl1271_cmd_build_ap_probe_req
	.p2align	2
_wl1271_cmd_build_ap_probe_req:         ; @wl1271_cmd_build_ap_probe_req
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_wl12xx_wlvif_to_vif
	cbnz	x19, LBB0_2
; %bb.1:
	mov	x1, x0
	ldr	w0, [x20]
	bl	_ieee80211_ap_probereq_get
	mov	x19, x0
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _DEBUG_SCAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_SCAN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1271_debug
	ldr	x8, [x21, #16]
	ldr	x9, [x21]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x20
	bl	_wl1271_tx_min_rate_get
	mov	x6, x0
Lloh5:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x10, _CMD_TEMPL_CFG_PROBE_REQ_2_4@GOTPAGE
Lloh9:
	ldr	x10, [x10, _CMD_TEMPL_CFG_PROBE_REQ_2_4@GOTPAGEOFF]
Lloh10:
	adrp	x11, _CMD_TEMPL_CFG_PROBE_REQ_5@GOTPAGE
Lloh11:
	ldr	x11, [x11, _CMD_TEMPL_CFG_PROBE_REQ_5@GOTPAGEOFF]
	ldr	w1, [x21, #8]
	cmp	x9, x8
	csel	x8, x10, x11, eq
	ldr	w2, [x8]
	ldp	w4, w3, [x19]
	mov	x0, x20
	mov	w5, #0
	bl	_wl1271_cmd_template_set
	tbz	w0, #31, LBB0_4
; %bb.3:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_wl1271_error
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_SCAN,4,2                 ; @DEBUG_SCAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set ap probe request template"

	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_CMD_TEMPL_CFG_PROBE_REQ_2_4,4,2 ; @CMD_TEMPL_CFG_PROBE_REQ_2_4
	.comm	_CMD_TEMPL_CFG_PROBE_REQ_5,4,2  ; @CMD_TEMPL_CFG_PROBE_REQ_5
l_.str.1:                               ; @.str.1
	.asciz	"Unable to set ap probe request template."

.subsections_via_symbols
