	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwlagn_rxon_connect
_iwlagn_rxon_connect:                   ## @iwlagn_rxon_connect
	.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, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	_IWL_RXON_CTX_BSS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_iwl_send_rxon_timing
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_16
LBB0_3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_iwlagn_update_qos
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.4:
	movq	(%rsi), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	callq	_iwlagn_update_beacon
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_16
LBB0_7:
	movq	$0, 8(%r14)
	movl	20(%rbx), %esi
	leaq	16(%rbx), %r12
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$4, %ecx
	movq	%r12, %r8
	callq	_iwl_dvm_send_cmd_pdu
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_16
LBB0_9:
	leaq	24(%rbx), %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.10:
	movq	(%rsi), %rax
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.11:
	movq	%r14, %rdi
	callq	_iwlagn_update_beacon
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_IWL_ERR
LBB0_13:
	movq	%r14, %rdi
	callq	_iwl_init_sensitivity
	movl	(%r14), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_iwl_set_tx_power
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
LBB0_16:
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_IWL_ERR
LBB0_17:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%r15d, %r15d
	jmp	LBB0_17
	.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"

	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
L_.str.1:                               ## @.str.1
	.asciz	"Error sending required beacon (%d)!\n"

L_.str.2:                               ## @.str.2
	.asciz	"Error setting new RXON (%d)\n"

	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
L_.str.3:                               ## @.str.3
	.asciz	"Error sending IBSS beacon\n"

L_.str.4:                               ## @.str.4
	.asciz	"Error sending TX power (%d)\n"

	.no_dead_strip	_iwlagn_rxon_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwlagn_rxon_connect
_iwlagn_rxon_connect:                   ; @iwlagn_rxon_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	mov	x21, x1
	ldr	x8, [x21], #24
Lloh0:
	adrp	x9, _IWL_RXON_CTX_BSS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IWL_RXON_CTX_BSS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_send_rxon_timing
	cbz	w0, LBB0_3
; %bb.2:
	mov	x22, x0
	str	x22, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
	b	LBB0_16
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_iwlagn_update_qos
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_7
; %bb.4:
	ldr	x8, [x1]
Lloh5:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_iwlagn_update_beacon
	cbz	w0, LBB0_7
; %bb.6:
	mov	x22, x0
	str	x22, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_7:
	str	xzr, [x19, #8]
	ldr	w1, [x20, #20]
	add	x22, x20, #16
	mov	x0, x19
	mov	w2, #0
	mov	w3, #4
	mov	x4, x22
	bl	_iwl_dvm_send_cmd_pdu
	cbz	w0, LBB0_9
; %bb.8:
	mov	x23, x0
	str	x23, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
	mov	x22, x23
	b	LBB0_16
LBB0_9:
	mov	x0, x21
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_13
; %bb.10:
	ldr	x8, [x1]
Lloh12:
	adrp	x9, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
	mov	x0, x19
	bl	_iwlagn_update_beacon
	cbz	w0, LBB0_13
; %bb.12:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
LBB0_13:
	mov	x0, x19
	bl	_iwl_init_sensitivity
	ldr	w1, [x19]
	mov	x0, x19
	mov	w2, #1
	bl	_iwl_set_tx_power
	mov	x22, x0
	cbz	w0, LBB0_16
; %bb.14:
	str	x22, [sp]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_15:
	mov	x0, x19
	bl	_IWL_ERR
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
LBB0_16:
	mov	x0, x22
	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	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.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"

	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
l_.str.1:                               ; @.str.1
	.asciz	"Error sending required beacon (%d)!\n"

l_.str.2:                               ; @.str.2
	.asciz	"Error setting new RXON (%d)\n"

	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
l_.str.3:                               ; @.str.3
	.asciz	"Error sending IBSS beacon\n"

l_.str.4:                               ; @.str.4
	.asciz	"Error sending TX power (%d)\n"

	.no_dead_strip	_iwlagn_rxon_connect
.subsections_via_symbols
