	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il3945_commit_rxon             ## -- Begin function il3945_commit_rxon
	.p2align	4, 0x90
_il3945_commit_rxon:                    ## @il3945_commit_rxon
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_RXON_FILTER_ASSOC_MSK@GOTPCREL(%rip), %r14
	movl	(%r14), %r13d
	andl	44(%rdi), %r13d
	movq	_S_EXIT_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	40(%r12), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_25:
	subl	(%rax), %ebx
LBB0_26:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r12, %rdi
	callq	_il_is_alive
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_RXON_FLG_TSF2HOST_MSK@GOTPCREL(%rip), %rax
	movl	48(%r12), %ecx
	orl	(%rax), %ecx
	movq	_RXON_FLG_DIS_DIV_MSK@GOTPCREL(%rip), %rax
	movq	_RXON_FLG_ANT_SEL_MSK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	notl	%edx
	andl	%ecx, %edx
	movl	%edx, 48(%r12)
	movq	%r12, %rdi
	callq	_il3945_get_antenna_flags
	orl	%eax, 48(%r12)
	movq	%r12, %rdi
	callq	_il_check_rxon_cmd
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_IL_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_3:
	movl	$-1, %ebx
	jmp	LBB0_26
LBB0_6:
	leaq	8(%r12), %rbx
	leaq	44(%r12), %r15
	movq	%r12, %rdi
	callq	_il_full_rxon_required
	testl	%eax, %eax
	je	LBB0_7
## %bb.11:
	movq	%r12, %rdi
	callq	_il_is_associated
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	testl	%r13d, %r13d
	je	LBB0_16
## %bb.13:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_D_INFO
	movl	(%r14), %eax
	notl	%eax
	andl	%eax, 8(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r12)
	movq	_C_RXON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$32, %edx
	movq	%rbx, %rcx
	callq	_il_send_cmd_pdu
	movq	%rbx, %r15
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	movl	(%r14), %eax
	orl	%eax, (%r15)
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_9
LBB0_7:
	movq	%rbx, %r14
	movq	%r12, %rdi
	callq	_il_send_rxon_assoc
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_9
LBB0_10:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$32, %edx
	callq	_memcpy
	movl	(%r12), %esi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_il_set_tx_power
	jmp	LBB0_26
LBB0_15:
	movq	%r12, %rdi
	callq	_il_clear_ucode_stations
	movq	%r12, %rdi
	callq	_il_restore_stations
	movq	%r15, %rbx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_16:
	movq	%rbx, %r14
	testl	%r13d, %r13d
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.6(%rip), %rbx
	cmovneq	%rax, %rbx
	movl	72(%r12), %edi
	callq	_le16_to_cpu
	movl	68(%r12), %ecx
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_D_INFO
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r15)
	movq	_il3945_mod_params@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpl	$0, (%rax)
	sete	%sil
	movq	%r12, %rdi
	callq	_il_set_rxon_hwcrypto
	movq	_C_RXON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$32, %edx
	movq	%r15, %rcx
	callq	_il_send_cmd_pdu
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_9
LBB0_18:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$32, %edx
	callq	_memcpy
	testl	%r13d, %r13d
	jne	LBB0_20
## %bb.19:
	movq	%r12, %rdi
	callq	_il_clear_ucode_stations
	movq	%r12, %rdi
	callq	_il_restore_stations
LBB0_20:
	movl	(%r12), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_il_set_tx_power
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rdi
LBB0_9:
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_IL_ERR
	jmp	LBB0_26
LBB0_22:
	movq	%r12, %rdi
	callq	_il3945_init_hw_rate_table
	testl	%eax, %eax
	je	LBB0_23
## %bb.24:
	leaq	L_.str.9(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_IL_ERR
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_23:
	xorl	%ebx, %ebx
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_RXON_FILTER_ASSOC_MSK,4,2      ## @RXON_FILTER_ASSOC_MSK
	.comm	_S_EXIT_PENDING,4,2             ## @S_EXIT_PENDING
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RXON_FLG_TSF2HOST_MSK,4,2      ## @RXON_FLG_TSF2HOST_MSK
	.comm	_RXON_FLG_DIS_DIV_MSK,4,2       ## @RXON_FLG_DIS_DIV_MSK
	.comm	_RXON_FLG_ANT_SEL_MSK,4,2       ## @RXON_FLG_ANT_SEL_MSK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid RXON configuration.  Not committing.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Error setting RXON_ASSOC configuration (%d).\n"

L_.str.2:                               ## @.str.2
	.asciz	"Toggling associated bit on current RXON\n"

	.comm	_C_RXON,4,2                     ## @C_RXON
L_.str.3:                               ## @.str.3
	.asciz	"Error clearing ASSOC_MSK on current configuration (%d).\n"

L_.str.4:                               ## @.str.4
	.asciz	"Sending RXON\n* with%s RXON_FILTER_ASSOC_MSK\n* channel = %d\n* bssid = %pM\n"

L_.str.5:                               ## @.str.5
	.space	1

L_.str.6:                               ## @.str.6
	.asciz	"out"

	.comm	_il3945_mod_params,4,2          ## @il3945_mod_params
L_.str.7:                               ## @.str.7
	.asciz	"Error setting new configuration (%d).\n"

L_.str.8:                               ## @.str.8
	.asciz	"Error setting Tx power (%d).\n"

L_.str.9:                               ## @.str.9
	.asciz	"Error setting HW rate table: %02X\n"

	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il3945_commit_rxon             ; -- Begin function il3945_commit_rxon
	.p2align	2
_il3945_commit_rxon:                    ; @il3945_commit_rxon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	mov	x20, x0
	ldr	w22, [x20, #44]!
Lloh0:
	adrp	x24, _RXON_FILTER_ASSOC_MSK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _RXON_FILTER_ASSOC_MSK@GOTPAGEOFF]
	ldr	w23, [x24]
Lloh2:
	adrp	x8, _S_EXIT_PENDING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S_EXIT_PENDING@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	sub	x1, x20, #4
	bl	_test_bit
	cbz	x0, LBB0_4
LBB0_1:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	mov	x0, x19
	bl	_il_is_alive
	cbz	w0, LBB0_7
; %bb.5:
Lloh7:
	adrp	x8, _RXON_FLG_TSF2HOST_MSK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RXON_FLG_TSF2HOST_MSK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x19, #48]
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _RXON_FLG_DIS_DIV_MSK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _RXON_FLG_DIS_DIV_MSK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _RXON_FLG_ANT_SEL_MSK@GOTPAGE
Lloh14:
	ldr	x10, [x10, _RXON_FLG_ANT_SEL_MSK@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w8, w8, w9
	str	w8, [x19, #48]
	mov	x0, x19
	bl	_il3945_get_antenna_flags
	ldr	w8, [x19, #48]
	orr	w8, w8, w0
	str	w8, [x19, #48]
	mov	x0, x19
	bl	_il_check_rxon_cmd
	cbz	w0, LBB0_8
; %bb.6:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IL_ERR
	b	LBB0_1
LBB0_7:
	mov	w22, #-1
	b	LBB0_3
LBB0_8:
	sub	x21, x20, #36
	mov	x0, x19
	bl	_il_full_rxon_required
	cbz	w0, LBB0_13
; %bb.9:
	and	w23, w23, w22
	mov	x0, x19
	bl	_il_is_associated
Lloh18:
	adrp	x25, _C_RXON@GOTPAGE
Lloh19:
	ldr	x25, [x25, _C_RXON@GOTPAGEOFF]
	cbz	x0, LBB0_17
; %bb.10:
	cbz	w23, LBB0_17
; %bb.11:
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_D_INFO
	ldr	w8, [x24]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	stp	xzr, xzr, [x19, #16]
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #32
	mov	x3, x21
	bl	_il_send_cmd_pdu
	cbz	w0, LBB0_16
; %bb.12:
	mov	x22, x0
	ldr	w8, [x24]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	str	x22, [sp]
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_23
LBB0_13:
	mov	x0, x19
	bl	_il_send_rxon_assoc
	mov	x22, x0
	cbz	w0, LBB0_15
; %bb.14:
	str	x22, [sp]
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IL_ERR
	b	LBB0_3
LBB0_15:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #32
	bl	_memcpy
	ldr	w1, [x19]
	mov	x0, x19
	mov	w2, #0
	bl	_il_set_tx_power
	b	LBB0_3
LBB0_16:
	mov	x0, x19
	bl	_il_clear_ucode_stations
	mov	x0, x19
	bl	_il_restore_stations
LBB0_17:
Lloh26:
	adrp	x8, l_.str.6@PAGE
Lloh27:
	add	x8, x8, l_.str.6@PAGEOFF
Lloh28:
	adrp	x9, l_.str.5@PAGE
Lloh29:
	add	x9, x9, l_.str.5@PAGEOFF
	cmp	w23, #0
	csel	x22, x9, x8, ne
	ldr	w0, [x19, #72]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19, #68]
	stp	x0, x8, [sp, #8]
	str	x22, [sp]
Lloh30:
	adrp	x0, l_.str.4@PAGE
Lloh31:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_D_INFO
	stp	xzr, xzr, [x20, #8]
Lloh32:
	adrp	x8, _il3945_mod_params@GOTPAGE
Lloh33:
	ldr	x8, [x8, _il3945_mod_params@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w1, eq
	mov	x0, x19
	bl	_il_set_rxon_hwcrypto
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #32
	mov	x3, x20
	bl	_il_send_cmd_pdu
	cbz	w0, LBB0_19
; %bb.18:
	mov	x22, x0
	str	x22, [sp]
Lloh35:
	adrp	x0, l_.str.7@PAGE
Lloh36:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_23
LBB0_19:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #32
	bl	_memcpy
	cbnz	w23, LBB0_21
; %bb.20:
	mov	x0, x19
	bl	_il_clear_ucode_stations
	mov	x0, x19
	bl	_il_restore_stations
LBB0_21:
	ldr	w1, [x19]
	mov	x0, x19
	mov	w2, #1
	bl	_il_set_tx_power
	cbz	w0, LBB0_24
; %bb.22:
	mov	x22, x0
	str	x22, [sp]
Lloh37:
	adrp	x0, l_.str.8@PAGE
Lloh38:
	add	x0, x0, l_.str.8@PAGEOFF
LBB0_23:
	bl	_IL_ERR
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_3
LBB0_24:
	mov	x0, x19
	bl	_il3945_init_hw_rate_table
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_26
; %bb.25:
	str	x0, [sp]
Lloh39:
	adrp	x0, l_.str.9@PAGE
Lloh40:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_IL_ERR
Lloh41:
	adrp	x8, _EIO@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_2
LBB0_26:
	mov	w22, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_RXON_FILTER_ASSOC_MSK,4,2      ; @RXON_FILTER_ASSOC_MSK
	.comm	_S_EXIT_PENDING,4,2             ; @S_EXIT_PENDING
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RXON_FLG_TSF2HOST_MSK,4,2      ; @RXON_FLG_TSF2HOST_MSK
	.comm	_RXON_FLG_DIS_DIV_MSK,4,2       ; @RXON_FLG_DIS_DIV_MSK
	.comm	_RXON_FLG_ANT_SEL_MSK,4,2       ; @RXON_FLG_ANT_SEL_MSK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid RXON configuration.  Not committing.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Error setting RXON_ASSOC configuration (%d).\n"

l_.str.2:                               ; @.str.2
	.asciz	"Toggling associated bit on current RXON\n"

	.comm	_C_RXON,4,2                     ; @C_RXON
l_.str.3:                               ; @.str.3
	.asciz	"Error clearing ASSOC_MSK on current configuration (%d).\n"

l_.str.4:                               ; @.str.4
	.asciz	"Sending RXON\n* with%s RXON_FILTER_ASSOC_MSK\n* channel = %d\n* bssid = %pM\n"

l_.str.5:                               ; @.str.5
	.space	1

l_.str.6:                               ; @.str.6
	.asciz	"out"

	.comm	_il3945_mod_params,4,2          ; @il3945_mod_params
l_.str.7:                               ; @.str.7
	.asciz	"Error setting new configuration (%d).\n"

l_.str.8:                               ; @.str.8
	.asciz	"Error setting Tx power (%d).\n"

l_.str.9:                               ; @.str.9
	.asciz	"Error setting HW rate table: %02X\n"

	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
