	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_mac_setup_prb_tmpl
_ath10k_mac_setup_prb_tmpl:             ## @ath10k_mac_setup_prb_tmpl
	.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	%rdi, %rbx
	movq	16(%rdi), %r12
	movq	24(%rdi), %r15
	movq	8(%r15), %r13
	movq	_WMI_SERVICE_BEACON_OFFLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_test_bit
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	(%rbx), %rax
	movq	_WMI_VDEV_TYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.2:
	movq	%r12, %rdi
	callq	_ieee80211_vif_is_mesh
	testq	%rax, %rax
	je	LBB0_3
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ieee80211_proberesp_get
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_ath10k_wmi_prb_tmpl
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree_skb
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
	movl	%ebx, %r14d
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ath10k_warn
	movq	_EPERM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_SERVICE_BEACON_OFFLOAD,4,2 ## @WMI_SERVICE_BEACON_OFFLOAD
	.comm	_WMI_VDEV_TYPE_AP,8,3           ## @WMI_VDEV_TYPE_AP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get probe resp template from mac80211\n"

	.comm	_EPERM,4,2                      ## @EPERM
L_.str.1:                               ## @.str.1
	.asciz	"failed to submit probe resp template command: %d\n"

	.no_dead_strip	_ath10k_mac_setup_prb_tmpl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_mac_setup_prb_tmpl
_ath10k_mac_setup_prb_tmpl:             ; @ath10k_mac_setup_prb_tmpl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	ldp	x21, x19, [x0, #16]
	ldr	x22, [x19, #8]
Lloh0:
	adrp	x8, _WMI_SERVICE_BEACON_OFFLOAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_SERVICE_BEACON_OFFLOAD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_test_bit
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _WMI_VDEV_TYPE_AP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WMI_VDEV_TYPE_AP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_ieee80211_vif_is_mesh
	cbz	x0, LBB0_5
LBB0_3:
	mov	w20, #0
LBB0_4:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
LBB0_5:
	mov	x0, x22
	mov	x1, x21
	bl	_ieee80211_proberesp_get
	cbz	x0, LBB0_8
; %bb.6:
	mov	x21, x0
	ldr	w1, [x20, #8]
	mov	x0, x19
	mov	x2, x21
	bl	_ath10k_wmi_prb_tmpl
	mov	x20, x0
	mov	x0, x21
	bl	_kfree_skb
	cbz	w20, LBB0_4
; %bb.7:
	str	x20, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
	b	LBB0_4
LBB0_8:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
Lloh10:
	adrp	x8, _EPERM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_SERVICE_BEACON_OFFLOAD,4,2 ; @WMI_SERVICE_BEACON_OFFLOAD
	.comm	_WMI_VDEV_TYPE_AP,8,3           ; @WMI_VDEV_TYPE_AP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get probe resp template from mac80211\n"

	.comm	_EPERM,4,2                      ; @EPERM
l_.str.1:                               ; @.str.1
	.asciz	"failed to submit probe resp template command: %d\n"

	.no_dead_strip	_ath10k_mac_setup_prb_tmpl
.subsections_via_symbols
