	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_p2p_find_listen_channel
_brcmf_p2p_find_listen_channel:         ## @brcmf_p2p_find_listen_channel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_IEEE80211_P2P_ATTR_LISTEN_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movl	$40, %r8d
	callq	_cfg80211_get_p2p_attr
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	-32(%rbp), %rbx
	movq	_SOCIAL_CHAN_1@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_5
## %bb.3:
	movq	_SOCIAL_CHAN_2@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_5
## %bb.4:
	movq	_SOCIAL_CHAN_3@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_5
## %bb.6:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	jmp	LBB0_7
LBB0_1:
	movq	%rax, %rbx
	jmp	LBB0_7
LBB0_5:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_brcmf_dbg
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_P2P_ATTR_LISTEN_CHANNEL,4,2 ## @IEEE80211_P2P_ATTR_LISTEN_CHANNEL
	.comm	_SOCIAL_CHAN_1,8,3              ## @SOCIAL_CHAN_1
	.comm	_SOCIAL_CHAN_2,8,3              ## @SOCIAL_CHAN_2
	.comm	_SOCIAL_CHAN_3,8,3              ## @SOCIAL_CHAN_3
	.comm	_INFO,4,2                       ## @INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Found my Listen Channel %d\n"

	.comm	_EPERM,8,3                      ## @EPERM
	.no_dead_strip	_brcmf_p2p_find_listen_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_p2p_find_listen_channel
_brcmf_p2p_find_listen_channel:         ; @brcmf_p2p_find_listen_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _IEEE80211_P2P_ATTR_LISTEN_CHANNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_P2P_ATTR_LISTEN_CHANNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x3, sp
	mov	w4, #40
	bl	_cfg80211_get_p2p_attr
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldr	x19, [sp, #32]
Lloh6:
	adrp	x8, _SOCIAL_CHAN_1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOCIAL_CHAN_1@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _SOCIAL_CHAN_2@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SOCIAL_CHAN_2@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _SOCIAL_CHAN_3@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SOCIAL_CHAN_3@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x19, x8
	ccmp	x19, x9, #4, ne
	ccmp	x19, x10, #4, ne
	b.ne	LBB0_4
; %bb.2:
Lloh15:
	adrp	x8, _INFO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_brcmf_dbg
	b	LBB0_5
LBB0_3:
	mov	x19, x0
	b	LBB0_5
LBB0_4:
Lloh20:
	adrp	x8, _EPERM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_P2P_ATTR_LISTEN_CHANNEL,4,2 ; @IEEE80211_P2P_ATTR_LISTEN_CHANNEL
	.comm	_SOCIAL_CHAN_1,8,3              ; @SOCIAL_CHAN_1
	.comm	_SOCIAL_CHAN_2,8,3              ; @SOCIAL_CHAN_2
	.comm	_SOCIAL_CHAN_3,8,3              ; @SOCIAL_CHAN_3
	.comm	_INFO,4,2                       ; @INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Found my Listen Channel %d\n"

	.comm	_EPERM,8,3                      ; @EPERM
	.no_dead_strip	_brcmf_p2p_find_listen_channel
.subsections_via_symbols
