	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_mac_setup_bcn_p2p_ie
_ath10k_mac_setup_bcn_p2p_ie:           ## @ath10k_mac_setup_bcn_p2p_ie
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.1:
	cmpl	$0, 8(%rax)
	je	LBB0_6
## %bb.2:
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movq	(%rsi), %rcx
	movq	_WLAN_OUI_WFA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WLAN_OUI_TYPE_WFA_P2P@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rcx), %rdx
	subq	%rdx, %rcx
	addq	8(%rsi), %rcx
	movl	%eax, %esi
	callq	_cfg80211_find_vendor_ie
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_ath10k_wmi_p2p_go_bcn_ie
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r12d
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %ecx
	callq	_ath10k_warn
	movl	%r12d, %r14d
	jmp	LBB0_6
LBB0_3:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_WLAN_OUI_WFA,4,2               ## @WLAN_OUI_WFA
	.comm	_WLAN_OUI_TYPE_WFA_P2P,4,2      ## @WLAN_OUI_TYPE_WFA_P2P
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to submit p2p go bcn ie for vdev %i: %d\n"

	.no_dead_strip	_ath10k_mac_setup_bcn_p2p_ie
.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_bcn_p2p_ie
_ath10k_mac_setup_bcn_p2p_ie:           ; @ath10k_mac_setup_bcn_p2p_ie
	.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
	ldr	x8, [x0, #8]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _NL80211_IFTYPE_AP@GOTPAGE
Lloh1:
	ldr	x10, [x10, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x19, x0
	ldr	x20, [x0, #16]
Lloh3:
	adrp	x8, _WLAN_OUI_WFA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLAN_OUI_WFA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _WLAN_OUI_TYPE_WFA_P2P@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WLAN_OUI_TYPE_WFA_P2P@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldp	x9, x10, [x1]
	ldr	x2, [x9]
	sub	x9, x9, x2
	add	x3, x9, x10
	mov	x1, x8
	bl	_cfg80211_find_vendor_ie
	cbz	x0, LBB0_7
; %bb.3:
	mov	x2, x0
	ldr	w1, [x19]
	mov	x0, x20
	bl	_ath10k_wmi_p2p_go_bcn_ie
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.4:
	ldr	w2, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	bl	_ath10k_warn
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
	mov	x0, x21
	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
LBB0_7:
Lloh11:
	adrp	x8, _ENOENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_WLAN_OUI_WFA,4,2               ; @WLAN_OUI_WFA
	.comm	_WLAN_OUI_TYPE_WFA_P2P,4,2      ; @WLAN_OUI_TYPE_WFA_P2P
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to submit p2p go bcn ie for vdev %i: %d\n"

	.no_dead_strip	_ath10k_mac_setup_bcn_p2p_ie
.subsections_via_symbols
