	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwlagn_rxon_disconn
_iwlagn_rxon_disconn:                   ## @iwlagn_rxon_disconn
	.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	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	_IWL_RXON_CTX_BSS@GOTPCREL(%rip), %rcx
	leaq	8(%rsi), %r15
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_iwlagn_disable_bss
LBB0_8:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_9
LBB0_2:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_iwlagn_disable_pan
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	cmpq	$0, 16(%r12)
	je	LBB0_9
## %bb.4:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_iwl_send_rxon_timing
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_9:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_iwl_clear_ucode_stations
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_iwl_update_bcast_station
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_iwl_restore_stations
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_iwl_restore_default_wep_keys
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_IWL_ERR
	jmp	LBB0_12
LBB0_11:
	addq	$24, %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	xorl	%ebx, %ebx
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_iwlagn_disconn_pan
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_RXON_CTX_BSS,8,3           ## @IWL_RXON_CTX_BSS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to send timing (%d)!\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to restore WEP keys (%d)\n"

	.no_dead_strip	_iwlagn_rxon_disconn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwlagn_rxon_disconn
_iwlagn_rxon_disconn:                   ; @iwlagn_rxon_disconn
	.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
	mov	x21, x1
	mov	x19, x0
	mov	x20, x1
	ldr	x8, [x20], #8
Lloh0:
	adrp	x9, _IWL_RXON_CTX_BSS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IWL_RXON_CTX_BSS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	x2, x20
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	bl	_iwlagn_disable_bss
	mov	x22, x0
	cbnz	w0, LBB0_11
	b	LBB0_7
LBB0_2:
	bl	_iwlagn_disable_pan
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.3:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_7
; %bb.4:
	mov	x0, x19
	mov	x1, x21
	bl	_iwl_send_rxon_timing
	cbz	w0, LBB0_6
; %bb.5:
	mov	x22, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_6:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_iwlagn_disconn_pan
	mov	x22, x0
	cbnz	w0, LBB0_11
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	bl	_iwl_clear_ucode_stations
	mov	x0, x19
	mov	x1, x21
	bl	_iwl_update_bcast_station
	mov	x0, x19
	mov	x1, x21
	bl	_iwl_restore_stations
	mov	x0, x19
	mov	x1, x21
	bl	_iwl_restore_default_wep_keys
	mov	x22, x0
	cbz	w0, LBB0_10
; %bb.8:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x19
	mov	x2, x22
	bl	_IWL_ERR
	b	LBB0_11
LBB0_10:
	add	x0, x21, #24
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
LBB0_11:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_RXON_CTX_BSS,8,3           ; @IWL_RXON_CTX_BSS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to send timing (%d)!\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to restore WEP keys (%d)\n"

	.no_dead_strip	_iwlagn_rxon_disconn
.subsections_via_symbols
