	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwlagn_commit_rxon             ## -- Begin function iwlagn_commit_rxon
	.p2align	4, 0x90
_iwlagn_commit_rxon:                    ## @iwlagn_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_RXON_FILTER_ASSOC_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	(%rsi), %r12d
	addq	$20, %rdi
	callq	_lockdep_assert_held
	movq	%r14, %rdi
	callq	_iwl_is_alive
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_NUM_IWL_RXON_CTX@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$2, (%rax)
	setne	%dil
	callq	_BUILD_BUG_ON
	cmpl	$0, 40(%r15)
	je	LBB0_3
## %bb.4:
	movq	_RXON_FLG_TSF2HOST_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_iwl_calc_basic_rates
	cmpl	$0, 16(%r14)
	jne	LBB0_6
## %bb.5:
	movq	_RXON_FLG_SELF_CTS_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
LBB0_6:
	movq	32(%r15), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movl	4(%r15), %eax
	jmp	LBB0_10
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_25
LBB0_9:
	movl	4(%r15), %eax
	movq	_RXON_FLG_BAND_24G_MSK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.11:
	movq	_RXON_FLG_SHORT_SLOT_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	jmp	LBB0_12
LBB0_10:
	movq	_RXON_FLG_SHORT_SLOT_MSK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_12:
	movl	%eax, 4(%r15)
	movl	24(%r15), %esi
	movq	%r14, %rdi
	callq	_iwl_print_rx_config_cmd
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_iwl_check_rxon_cmd
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_IWL_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_25
LBB0_3:
	xorl	%ebx, %ebx
LBB0_25:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_STATUS_CHANNEL_SWITCH_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r14), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movq	(%r14), %rdi
	cmpq	8(%r15), %rdi
	je	LBB0_17
## %bb.16:
	callq	_le16_to_cpu
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_IWL_DEBUG_11H
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_iwl_chswitch_done
LBB0_17:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_iwl_full_rxon_required
	testl	%eax, %eax
	je	LBB0_18
## %bb.20:
	movq	_iwlwifi_mod_params@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpl	$0, (%rax)
	sete	%dl
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_iwl_set_rxon_hwcrypto
	testl	%r12d, %r12d
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rbx
	cmoveq	%rax, %rbx
	movq	8(%r15), %rdi
	callq	_le16_to_cpu
	movl	16(%r15), %r8d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_IWL_DEBUG_INFO
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_iwlagn_rxon_disconn
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.21:
	movq	%r14, %rdi
	callq	_iwlagn_set_pan_params
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.22:
	testl	%r12d, %r12d
	je	LBB0_25
## %bb.23:
	movq	%r14, %rdi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwlagn_rxon_connect            ## TAILCALL
LBB0_18:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_iwlagn_send_rxon_assoc
	testl	%eax, %eax
	je	LBB0_24
## %bb.19:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_IWL_ERR
	jmp	LBB0_25
LBB0_24:
	leaq	44(%r15), %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	8(%r14), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_iwl_set_tx_power
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_iwl_power_update_mode
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_RXON_FILTER_ASSOC_MSK,4,2      ## @RXON_FILTER_ASSOC_MSK
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_NUM_IWL_RXON_CTX,4,2           ## @NUM_IWL_RXON_CTX
	.comm	_RXON_FLG_TSF2HOST_MSK,4,2      ## @RXON_FLG_TSF2HOST_MSK
	.comm	_RXON_FLG_SELF_CTS_EN,4,2       ## @RXON_FLG_SELF_CTS_EN
	.comm	_RXON_FLG_BAND_24G_MSK,4,2      ## @RXON_FLG_BAND_24G_MSK
	.comm	_RXON_FLG_SHORT_SLOT_MSK,4,2    ## @RXON_FLG_SHORT_SLOT_MSK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid RXON configuration. Not committing.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_STATUS_CHANNEL_SWITCH_PENDING,4,2 ## @STATUS_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"

	.comm	_iwlwifi_mod_params,4,2         ## @iwlwifi_mod_params
L_.str.3:                               ## @.str.3
	.asciz	"Going to commit RXON\n  * with%s RXON_FILTER_ASSOC_MSK\n  * channel = %d\n  * bssid = %pM\n"

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwlagn_commit_rxon             ; -- Begin function iwlagn_commit_rxon
	.p2align	2
_iwlagn_commit_rxon:                    ; @iwlagn_commit_rxon
	.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	w22, [x21], #44
Lloh0:
	adrp	x8, _RXON_FILTER_ASSOC_MSK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RXON_FILTER_ASSOC_MSK@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	add	x0, x0, #20
	bl	_lockdep_assert_held
	mov	x0, x19
	bl	_iwl_is_alive
	cbz	w0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _NUM_IWL_RXON_CTX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NUM_IWL_RXON_CTX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #2
	cset	w0, ne
	bl	_BUILD_BUG_ON
	ldr	w8, [x20, #40]
	cbz	w8, LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _RXON_FLG_TSF2HOST_MSK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RXON_FLG_TSF2HOST_MSK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_calc_basic_rates
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_6
; %bb.3:
	ldr	x8, [x20, #32]
	cbnz	x8, LBB0_7
	b	LBB0_9
LBB0_4:
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_14
LBB0_5:
	mov	w22, #0
	b	LBB0_15
LBB0_6:
Lloh11:
	adrp	x8, _RXON_FLG_SELF_CTS_EN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RXON_FLG_SELF_CTS_EN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_9
LBB0_7:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w8, [x20, #4]
	b	LBB0_11
LBB0_9:
	ldr	w8, [x20, #4]
Lloh14:
	adrp	x9, _RXON_FLG_BAND_24G_MSK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RXON_FLG_BAND_24G_MSK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh17:
	adrp	x9, _RXON_FLG_SHORT_SLOT_MSK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _RXON_FLG_SHORT_SLOT_MSK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	bic	w8, w8, w9
	b	LBB0_12
LBB0_11:
Lloh20:
	adrp	x9, _RXON_FLG_SHORT_SLOT_MSK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _RXON_FLG_SHORT_SLOT_MSK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
LBB0_12:
	str	w8, [x20, #4]
	ldr	w1, [x20, #24]
	mov	x0, x19
	bl	_iwl_print_rx_config_cmd
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_check_rxon_cmd
	cbz	w0, LBB0_16
; %bb.13:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_15:
	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
LBB0_16:
Lloh27:
	adrp	x8, _STATUS_CHANNEL_SWITCH_PENDING@GOTPAGE
Lloh28:
	ldr	x8, [x8, _STATUS_CHANNEL_SWITCH_PENDING@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	add	x1, x19, #12
	bl	_test_bit
	cbz	x0, LBB0_19
; %bb.17:
	ldr	x0, [x19]
	ldr	x8, [x20, #8]
	cmp	x0, x8
	b.eq	LBB0_19
; %bb.18:
	bl	_le16_to_cpu
	mov	x2, x0
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_11H
	mov	x0, x19
	mov	w1, #0
	bl	_iwl_chswitch_done
LBB0_19:
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_full_rxon_required
	cbz	w0, LBB0_24
; %bb.20:
	and	w23, w23, w22
Lloh32:
	adrp	x8, _iwlwifi_mod_params@GOTPAGE
Lloh33:
	ldr	x8, [x8, _iwlwifi_mod_params@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w2, eq
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_set_rxon_hwcrypto
Lloh35:
	adrp	x8, l_.str.4@PAGE
Lloh36:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh37:
	adrp	x9, l_.str.5@PAGE
Lloh38:
	add	x9, x9, l_.str.5@PAGEOFF
	cmp	w23, #0
	csel	x21, x9, x8, eq
	ldr	x0, [x20, #8]
	bl	_le16_to_cpu
	mov	x3, x0
	ldr	w4, [x20, #16]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_IWL_DEBUG_INFO
	mov	x0, x19
	mov	x1, x20
	bl	_iwlagn_rxon_disconn
	mov	x22, x0
	cbnz	w0, LBB0_15
; %bb.21:
	mov	x0, x19
	bl	_iwlagn_set_pan_params
	mov	x22, x0
	cbnz	w0, LBB0_15
; %bb.22:
	cbz	w23, LBB0_15
; %bb.23:
	mov	x0, x19
	mov	x1, 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	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_iwlagn_rxon_connect
LBB0_24:
	mov	x0, x19
	mov	x1, x20
	bl	_iwlagn_send_rxon_assoc
	mov	x22, x0
	cbz	w0, LBB0_26
; %bb.25:
	str	x22, [sp]
Lloh41:
	adrp	x1, l_.str.2@PAGE
Lloh42:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
	b	LBB0_15
LBB0_26:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	ldr	w1, [x19, #8]
	mov	x0, x19
	mov	w2, #0
	bl	_iwl_set_tx_power
	mov	x0, x19
	mov	w1, #1
	bl	_iwl_power_update_mode
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_RXON_FILTER_ASSOC_MSK,4,2      ; @RXON_FILTER_ASSOC_MSK
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_NUM_IWL_RXON_CTX,4,2           ; @NUM_IWL_RXON_CTX
	.comm	_RXON_FLG_TSF2HOST_MSK,4,2      ; @RXON_FLG_TSF2HOST_MSK
	.comm	_RXON_FLG_SELF_CTS_EN,4,2       ; @RXON_FLG_SELF_CTS_EN
	.comm	_RXON_FLG_BAND_24G_MSK,4,2      ; @RXON_FLG_BAND_24G_MSK
	.comm	_RXON_FLG_SHORT_SLOT_MSK,4,2    ; @RXON_FLG_SHORT_SLOT_MSK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid RXON configuration. Not committing.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_STATUS_CHANNEL_SWITCH_PENDING,4,2 ; @STATUS_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"

	.comm	_iwlwifi_mod_params,4,2         ; @iwlwifi_mod_params
l_.str.3:                               ; @.str.3
	.asciz	"Going to commit RXON\n  * with%s RXON_FILTER_ASSOC_MSK\n  * channel = %d\n  * bssid = %pM\n"

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

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

.subsections_via_symbols
