	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwlagn_disable_pan
_iwlagn_disable_pan:                    ## @iwlagn_disable_pan
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rdx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	_iwlagn_disable_pan.deactivate_cmd(%rip), %r13
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r13, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_iwl_init_notification_wait
	movq	_RXON_FILTER_ASSOC_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%rbx)
	movq	_RXON_DEV_TYPE_P2P@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	(%r12), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$8, %ecx
	movq	%rbx, %r8
	callq	_iwl_dvm_send_cmd_pdu
	movl	%eax, %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rbx)
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_IWL_ERR
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_iwl_remove_notification
	movl	%r12d, %r14d
	jmp	LBB0_4
LBB0_2:
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_iwl_wait_notification
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_IWL_ERR
	movl	%ebx, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @iwlagn_disable_pan.deactivate_cmd
_iwlagn_disable_pan.deactivate_cmd:
	.long	128                             ## 0x80

	.comm	_RXON_FILTER_ASSOC_MSK,4,2      ## @RXON_FILTER_ASSOC_MSK
	.comm	_RXON_DEV_TYPE_P2P,4,2          ## @RXON_DEV_TYPE_P2P
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error disabling PAN (%d)\n"

	.comm	_HZ,4,2                         ## @HZ
L_.str.1:                               ## @.str.1
	.asciz	"Timed out waiting for PAN disable\n"

	.no_dead_strip	_iwlagn_disable_pan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwlagn_disable_pan
_iwlagn_disable_pan:                    ; @iwlagn_disable_pan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	d8, [x2]
Lloh0:
	adrp	x22, _iwlagn_disable_pan.deactivate_cmd@PAGE
Lloh1:
	add	x22, x22, _iwlagn_disable_pan.deactivate_cmd@PAGEOFF
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x3, x0
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x22
	mov	x4, #0
	mov	x5, #0
	bl	_iwl_init_notification_wait
Lloh2:
	adrp	x8, _RXON_FILTER_ASSOC_MSK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RXON_FILTER_ASSOC_MSK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x21, #4]
	bic	w8, w9, w8
Lloh5:
	adrp	x9, _RXON_DEV_TYPE_P2P@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RXON_DEV_TYPE_P2P@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x21]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #8
	mov	x4, x21
	bl	_iwl_dvm_send_cmd_pdu
	str	d8, [x21]
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	str	x20, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
	add	x1, sp, #8
	mov	x0, x19
	bl	_iwl_remove_notification
	b	LBB0_4
LBB0_2:
Lloh10:
	adrp	x8, _HZ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_iwl_wait_notification
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @iwlagn_disable_pan.deactivate_cmd
_iwlagn_disable_pan.deactivate_cmd:
	.long	128                             ; 0x80

	.comm	_RXON_FILTER_ASSOC_MSK,4,2      ; @RXON_FILTER_ASSOC_MSK
	.comm	_RXON_DEV_TYPE_P2P,4,2          ; @RXON_DEV_TYPE_P2P
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error disabling PAN (%d)\n"

	.comm	_HZ,4,2                         ; @HZ
l_.str.1:                               ; @.str.1
	.asciz	"Timed out waiting for PAN disable\n"

	.no_dead_strip	_iwlagn_disable_pan
.subsections_via_symbols
