	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il4965_commit_rxon
_il4965_commit_rxon:                    ## @il4965_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
	subq	$24, %rsp
	.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), %r15
	movl	(%r15), %r13d
	andl	16(%rdi), %r13d
	callq	_il_is_alive
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_RXON_FLG_TSF2HOST_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 36(%r12)
	movq	%r12, %rdi
	callq	_il_check_rxon_cmd
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_IL_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_27
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_27
LBB0_4:
	movq	_S_CHANNEL_SWITCH_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	56(%r12), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%r12), %rdi
	cmpq	24(%r12), %rdi
	je	LBB0_7
## %bb.6:
	callq	_le16_to_cpu
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_D_11H
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_il_chswitch_done
LBB0_7:
	leaq	60(%r12), %rbx
	leaq	16(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_il_full_rxon_required
	testl	%eax, %eax
	je	LBB0_8
## %bb.11:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_il_is_associated
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	testl	%r13d, %r13d
	je	LBB0_17
## %bb.13:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_D_INFO
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, 60(%r12)
	movq	_C_RXON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$24, %edx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_il_send_cmd_pdu
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	movl	(%r15), %eax
	orl	%eax, (%r14)
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_26
LBB0_8:
	movq	%rbx, %r15
	movq	%r12, %rdi
	callq	_il_send_rxon_assoc
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_26
LBB0_10:
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$24, %edx
	callq	_memcpy
	movq	%r12, %rdi
	callq	_il_print_rx_config_cmd
	movl	8(%r12), %esi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_il_set_tx_power
	jmp	LBB0_27
LBB0_15:
	movq	%r12, %rdi
	callq	_il_clear_ucode_stations
	movq	%r12, %rdi
	callq	_il_restore_stations
	movq	%r12, %rdi
	callq	_il4965_restore_default_wep_keys
	testl	%eax, %eax
	jne	LBB0_16
LBB0_17:
	testl	%r13d, %r13d
	leaq	L_.str.7(%rip), %rax
	leaq	L_.str.8(%rip), %rbx
	cmovneq	%rax, %rbx
	movq	24(%r12), %rdi
	callq	_le16_to_cpu
	movl	32(%r12), %ecx
	leaq	L_.str.6(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_D_INFO
	movq	48(%r12), %rax
	movq	(%rax), %rax
	xorl	%esi, %esi
	cmpl	$0, (%rax)
	sete	%sil
	movq	%r12, %rdi
	callq	_il_set_rxon_hwcrypto
	testl	%r13d, %r13d
	je	LBB0_18
## %bb.21:
	movq	$0, 40(%r12)
	movq	_C_RXON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$24, %edx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_il_send_cmd_pdu
	testl	%eax, %eax
	jne	LBB0_19
## %bb.22:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	$24, %edx
	callq	_memcpy
LBB0_23:
	movq	%r12, %rdi
	callq	_il_print_rx_config_cmd
	movq	%r12, %rdi
	callq	_il4965_init_sensitivity
	movl	8(%r12), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_il_set_tx_power
	testl	%eax, %eax
	je	LBB0_24
## %bb.25:
	movl	%eax, %ebx
	leaq	L_.str.11(%rip), %rdi
	jmp	LBB0_26
LBB0_18:
	movq	_C_RXON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$24, %edx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_il_send_cmd_pdu
	testl	%eax, %eax
	je	LBB0_20
LBB0_19:
	movl	%eax, %ebx
	leaq	L_.str.9(%rip), %rdi
	jmp	LBB0_26
LBB0_20:
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_D_INFO
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	$24, %edx
	callq	_memcpy
	movq	%r12, %rdi
	callq	_il_clear_ucode_stations
	movq	%r12, %rdi
	callq	_il_restore_stations
	movq	%r12, %rdi
	callq	_il4965_restore_default_wep_keys
	testl	%eax, %eax
	je	LBB0_23
LBB0_16:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rdi
LBB0_26:
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_IL_ERR
LBB0_27:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	xorl	%ebx, %ebx
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_RXON_FILTER_ASSOC_MSK,4,2      ## @RXON_FILTER_ASSOC_MSK
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_RXON_FLG_TSF2HOST_MSK,4,2      ## @RXON_FLG_TSF2HOST_MSK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid RXON configuration.  Not committing.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_S_CHANNEL_SWITCH_PENDING,4,2   ## @S_CHANNEL_SWITCH_PENDING
L_.str.1:                               ## @.str.1
	.asciz	"abort channel switch on %d\n"

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

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

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

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

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

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

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

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

L_.str.10:                              ## @.str.10
	.asciz	"Return from !new_assoc RXON.\n"

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

	.no_dead_strip	_il4965_commit_rxon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il4965_commit_rxon
_il4965_commit_rxon:                    ; @il4965_commit_rxon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	mov	x20, x0
	ldr	w22, [x20, #16]!
Lloh0:
	adrp	x23, _RXON_FILTER_ASSOC_MSK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RXON_FILTER_ASSOC_MSK@GOTPAGEOFF]
	ldr	w24, [x23]
	bl	_il_is_alive
	cbz	w0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _RXON_FLG_TSF2HOST_MSK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RXON_FLG_TSF2HOST_MSK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19, #36]
	orr	w8, w9, w8
	str	w8, [x19, #36]
	mov	x0, x19
	bl	_il_check_rxon_cmd
	cbz	w0, LBB0_6
; %bb.2:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IL_ERR
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
Lloh11:
	adrp	x8, _S_CHANNEL_SWITCH_PENDING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _S_CHANNEL_SWITCH_PENDING@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	x1, x19, #56
	bl	_test_bit
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x0, [x19]
	ldr	x8, [x19, #24]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.8:
	bl	_le16_to_cpu
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_D_11H
	mov	x0, x19
	mov	w1, #0
	bl	_il_chswitch_done
LBB0_9:
	add	x21, x19, #60
	mov	x0, x19
	bl	_il_full_rxon_required
	cbz	w0, LBB0_14
; %bb.10:
	and	w24, w24, w22
	mov	x0, x19
	bl	_il_is_associated
	cbz	x0, LBB0_18
; %bb.11:
	cbz	w24, LBB0_18
; %bb.12:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_D_INFO
	ldr	w8, [x23]
	ldr	w9, [x19, #60]
	bic	w8, w9, w8
	str	w8, [x19, #60]
Lloh18:
	adrp	x8, _C_RXON@GOTPAGE
Lloh19:
	ldr	x8, [x8, _C_RXON@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #24
	mov	x3, x21
	bl	_il_send_cmd_pdu
	cbz	w0, LBB0_17
; %bb.13:
	mov	x22, x0
	ldr	w8, [x23]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	str	x22, [sp]
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_27
LBB0_14:
	mov	x0, x19
	bl	_il_send_rxon_assoc
	mov	x22, x0
	cbz	w0, LBB0_16
; %bb.15:
	str	x22, [sp]
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_IL_ERR
	b	LBB0_5
LBB0_16:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #24
	bl	_memcpy
	mov	x0, x19
	bl	_il_print_rx_config_cmd
	ldr	w1, [x19, #8]
	mov	x0, x19
	mov	w2, #0
	bl	_il_set_tx_power
	b	LBB0_5
LBB0_17:
	mov	x0, x19
	bl	_il_clear_ucode_stations
	mov	x0, x19
	bl	_il_restore_stations
	mov	x0, x19
	bl	_il4965_restore_default_wep_keys
	cbnz	w0, LBB0_24
LBB0_18:
Lloh25:
	adrp	x8, l_.str.8@PAGE
Lloh26:
	add	x8, x8, l_.str.8@PAGEOFF
Lloh27:
	adrp	x9, l_.str.7@PAGE
Lloh28:
	add	x9, x9, l_.str.7@PAGEOFF
	cmp	w24, #0
	csel	x22, x9, x8, ne
	ldr	x0, [x19, #24]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19, #32]
	stp	x0, x8, [sp, #8]
	str	x22, [sp]
Lloh29:
	adrp	x0, l_.str.6@PAGE
Lloh30:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_D_INFO
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w1, eq
	mov	x0, x19
	bl	_il_set_rxon_hwcrypto
	cbz	w24, LBB0_21
; %bb.19:
	str	xzr, [x19, #40]
Lloh31:
	adrp	x8, _C_RXON@GOTPAGE
Lloh32:
	ldr	x8, [x8, _C_RXON@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #24
	mov	x3, x20
	bl	_il_send_cmd_pdu
	cbnz	w0, LBB0_22
; %bb.20:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #24
	bl	_memcpy
	b	LBB0_25
LBB0_21:
Lloh34:
	adrp	x8, _C_RXON@GOTPAGE
Lloh35:
	ldr	x8, [x8, _C_RXON@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #24
	mov	x3, x20
	bl	_il_send_cmd_pdu
	cbz	w0, LBB0_23
LBB0_22:
	mov	x22, x0
	str	x22, [sp]
Lloh37:
	adrp	x0, l_.str.9@PAGE
Lloh38:
	add	x0, x0, l_.str.9@PAGEOFF
	b	LBB0_27
LBB0_23:
Lloh39:
	adrp	x0, l_.str.10@PAGE
Lloh40:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_D_INFO
	mov	x0, x21
	mov	x1, x20
	mov	w2, #24
	bl	_memcpy
	mov	x0, x19
	bl	_il_clear_ucode_stations
	mov	x0, x19
	bl	_il_restore_stations
	mov	x0, x19
	bl	_il4965_restore_default_wep_keys
	cbz	w0, LBB0_25
LBB0_24:
	mov	x22, x0
	str	x22, [sp]
Lloh41:
	adrp	x0, l_.str.5@PAGE
Lloh42:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_27
LBB0_25:
	mov	x0, x19
	bl	_il_print_rx_config_cmd
	mov	x0, x19
	bl	_il4965_init_sensitivity
	ldr	w1, [x19, #8]
	mov	x0, x19
	mov	w2, #1
	bl	_il_set_tx_power
	mov	x22, x0
	cbz	w0, LBB0_5
; %bb.26:
	str	x22, [sp]
Lloh43:
	adrp	x0, l_.str.11@PAGE
Lloh44:
	add	x0, x0, l_.str.11@PAGEOFF
LBB0_27:
	bl	_IL_ERR
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_RXON_FILTER_ASSOC_MSK,4,2      ; @RXON_FILTER_ASSOC_MSK
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_RXON_FLG_TSF2HOST_MSK,4,2      ; @RXON_FLG_TSF2HOST_MSK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid RXON configuration.  Not committing.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_S_CHANNEL_SWITCH_PENDING,4,2   ; @S_CHANNEL_SWITCH_PENDING
l_.str.1:                               ; @.str.1
	.asciz	"abort channel switch on %d\n"

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

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

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

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

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

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

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

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

l_.str.10:                              ; @.str.10
	.asciz	"Return from !new_assoc RXON.\n"

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

	.no_dead_strip	_il4965_commit_rxon
.subsections_via_symbols
