	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_wmi_p2p_info_event_rx
_ath6kl_wmi_p2p_info_event_rx:          ## @ath6kl_wmi_p2p_info_event_rx
	.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
	cmpl	$15, %esi
	jbe	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movl	12(%rdi), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movl	8(%r14), %edi
	callq	_le16_to_cpu
	movl	%eax, %r15d
	movq	_ATH6KL_DBG_WMI@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_ath6kl_dbg
	movq	_P2P_FLAG_CAPABILITIES_REQ@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.3:
	cmpl	$3, %r15d
	jbe	LBB0_1
## %bb.4:
	movq	(%r14), %rax
	movl	(%r12), %edi
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_ath6kl_dbg
LBB0_5:
	movq	_P2P_FLAG_MACADDR_REQ@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.6:
	cmpl	$3, %r15d
	jbe	LBB0_1
## %bb.7:
	movq	(%r14), %rax
	movl	(%r12), %edi
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_ath6kl_dbg
LBB0_8:
	movq	_P2P_FLAG_HMODEL_REQ@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.10:
	cmpl	$7, %r15d
	ja	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_11:
	movq	(%r14), %rax
	movl	(%r12), %edi
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_ath6kl_dbg
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ATH6KL_DBG_WMI,4,2             ## @ATH6KL_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"p2p_info: flags=%x len=%d\n"

	.comm	_P2P_FLAG_CAPABILITIES_REQ,4,2  ## @P2P_FLAG_CAPABILITIES_REQ
L_.str.1:                               ## @.str.1
	.asciz	"p2p_info: GO Power Save = %d\n"

	.comm	_P2P_FLAG_MACADDR_REQ,4,2       ## @P2P_FLAG_MACADDR_REQ
L_.str.2:                               ## @.str.2
	.asciz	"p2p_info: MAC Address = %pM\n"

	.comm	_P2P_FLAG_HMODEL_REQ,4,2        ## @P2P_FLAG_HMODEL_REQ
L_.str.3:                               ## @.str.3
	.asciz	"p2p_info: P2P Model = %d (%s)\n"

L_.str.4:                               ## @.str.4
	.asciz	"host"

L_.str.5:                               ## @.str.5
	.asciz	"firmware"

	.no_dead_strip	_ath6kl_wmi_p2p_info_event_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_wmi_p2p_info_event_rx
_ath6kl_wmi_p2p_info_event_rx:          ; @ath6kl_wmi_p2p_info_event_rx
	.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
	cmp	w1, #15
	b.ls	LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_le32_to_cpu
	mov	x20, x0
	ldr	w0, [x19, #8]
	bl	_le16_to_cpu
	mov	x21, x0
Lloh0:
	adrp	x22, _ATH6KL_DBG_WMI@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ATH6KL_DBG_WMI@GOTPAGEOFF]
	ldr	w0, [x22]
	str	x21, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_ath6kl_dbg
Lloh4:
	adrp	x8, _P2P_FLAG_CAPABILITIES_REQ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _P2P_FLAG_CAPABILITIES_REQ@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.2:
	cmp	w21, #3
	b.ls	LBB0_9
; %bb.3:
	ldr	x8, [x19]
	ldr	w0, [x22]
	ldr	w2, [x8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ath6kl_dbg
LBB0_4:
Lloh9:
	adrp	x8, _P2P_FLAG_MACADDR_REQ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _P2P_FLAG_MACADDR_REQ@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.5:
	cmp	w21, #3
	b.ls	LBB0_9
; %bb.6:
	ldr	x8, [x19]
	ldr	w0, [x22]
	ldr	w2, [x8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ath6kl_dbg
LBB0_7:
Lloh14:
	adrp	x8, _P2P_FLAG_HMODEL_REQ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _P2P_FLAG_HMODEL_REQ@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_12
; %bb.8:
	cmp	w21, #7
	b.hi	LBB0_11
LBB0_9:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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_11:
	ldr	x8, [x19]
	ldr	w0, [x22]
	ldr	x2, [x8]
Lloh20:
	adrp	x8, l_.str.4@PAGE
Lloh21:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh22:
	adrp	x9, l_.str.5@PAGE
Lloh23:
	add	x9, x9, l_.str.5@PAGEOFF
	cmp	x2, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_ath6kl_dbg
LBB0_12:
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ATH6KL_DBG_WMI,4,2             ; @ATH6KL_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"p2p_info: flags=%x len=%d\n"

	.comm	_P2P_FLAG_CAPABILITIES_REQ,4,2  ; @P2P_FLAG_CAPABILITIES_REQ
l_.str.1:                               ; @.str.1
	.asciz	"p2p_info: GO Power Save = %d\n"

	.comm	_P2P_FLAG_MACADDR_REQ,4,2       ; @P2P_FLAG_MACADDR_REQ
l_.str.2:                               ; @.str.2
	.asciz	"p2p_info: MAC Address = %pM\n"

	.comm	_P2P_FLAG_HMODEL_REQ,4,2        ; @P2P_FLAG_HMODEL_REQ
l_.str.3:                               ; @.str.3
	.asciz	"p2p_info: P2P Model = %d (%s)\n"

l_.str.4:                               ; @.str.4
	.asciz	"host"

l_.str.5:                               ; @.str.5
	.asciz	"firmware"

	.no_dead_strip	_ath6kl_wmi_p2p_info_event_rx
.subsections_via_symbols
