	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il4965_config_ap
_il4965_config_ap:                      ## @il4965_config_ap
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	48(%rdi), %r14
	addq	$40, %rdi
	callq	_lockdep_assert_held
	movq	_S_EXIT_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	36(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_1
## %bb.13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %rdi
	callq	_il_is_associated
	testl	%eax, %eax
	jne	LBB0_12
## %bb.2:
	movq	_RXON_FILTER_ASSOC_MSK@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_il_commit_rxon
	movq	%rbx, %rdi
	callq	_il_send_rxon_timing
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_IL_WARN
LBB0_4:
	movl	28(%rbx), %eax
	movl	%eax, 32(%rbx)
	leaq	24(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_il_set_rxon_ht
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_6:
	movq	$0, 8(%rbx)
	cmpq	$0, 8(%r14)
	movq	_RXON_FLG_SHORT_PREAMBLE_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_8
## %bb.7:
	orl	(%rbx), %eax
	jmp	LBB0_9
LBB0_8:
	notl	%eax
	andl	(%rbx), %eax
LBB0_9:
	movl	%eax, (%rbx)
	movq	_RXON_FLG_BAND_24G_MSK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	movq	_RXON_FLG_SHORT_SLOT_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	orl	%eax, %edx
	notl	%ecx
	andl	%eax, %ecx
	cmpq	$0, (%r14)
	cmovnel	%edx, %ecx
	movl	%ecx, (%rbx)
LBB0_11:
	movq	%rbx, %rdi
	callq	_il4965_send_beacon_cmd
	movl	(%r15), %eax
	orl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_il_commit_rxon
LBB0_12:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_il4965_send_beacon_cmd         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S_EXIT_PENDING,4,2             ## @S_EXIT_PENDING
	.comm	_RXON_FILTER_ASSOC_MSK,4,2      ## @RXON_FILTER_ASSOC_MSK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RXON timing failed - Attempting to continue.\n"

	.comm	_RXON_FLG_SHORT_PREAMBLE_MSK,4,2 ## @RXON_FLG_SHORT_PREAMBLE_MSK
	.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
	.no_dead_strip	_il4965_config_ap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il4965_config_ap
_il4965_config_ap:                      ; @il4965_config_ap
	.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	x19, x0
	ldr	x20, [x0, #48]
	add	x0, x0, #40
	bl	_lockdep_assert_held
Lloh0:
	adrp	x8, _S_EXIT_PENDING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_EXIT_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #36
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	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
LBB0_2:
	mov	x0, x19
	bl	_il_is_associated
	cbnz	w0, LBB0_13
; %bb.3:
Lloh3:
	adrp	x21, _RXON_FILTER_ASSOC_MSK@GOTPAGE
Lloh4:
	ldr	x21, [x21, _RXON_FILTER_ASSOC_MSK@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_il_commit_rxon
	mov	x0, x19
	bl	_il_send_rxon_timing
	cbz	w0, LBB0_5
; %bb.4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IL_WARN
LBB0_5:
	ldr	w8, [x19, #28]
	str	w8, [x19, #32]
	add	x1, x19, #24
	mov	x0, x19
	bl	_il_set_rxon_ht
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	blr	x8
LBB0_7:
	str	xzr, [x19, #8]
	ldr	x9, [x20, #8]
Lloh7:
	adrp	x8, _RXON_FLG_SHORT_PREAMBLE_MSK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RXON_FLG_SHORT_PREAMBLE_MSK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cbz	x9, LBB0_9
; %bb.8:
	ldr	w9, [x19]
	orr	w8, w9, w8
	b	LBB0_10
LBB0_9:
	ldr	w9, [x19]
	bic	w8, w9, w8
LBB0_10:
	str	w8, [x19]
Lloh10:
	adrp	x9, _RXON_FLG_BAND_24G_MSK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _RXON_FLG_BAND_24G_MSK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	ldr	x9, [x20]
Lloh13:
	adrp	x10, _RXON_FLG_SHORT_SLOT_MSK@GOTPAGE
Lloh14:
	ldr	x10, [x10, _RXON_FLG_SHORT_SLOT_MSK@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w11, w10, w8
	bic	w8, w8, w10
	cmp	x9, #0
	csel	w8, w8, w11, eq
	str	w8, [x19]
LBB0_12:
	mov	x0, x19
	bl	_il4965_send_beacon_cmd
	ldr	w8, [x21]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_il_commit_rxon
LBB0_13:
	mov	x0, x19
	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
	b	_il4965_send_beacon_cmd
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_S_EXIT_PENDING,4,2             ; @S_EXIT_PENDING
	.comm	_RXON_FILTER_ASSOC_MSK,4,2      ; @RXON_FILTER_ASSOC_MSK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RXON timing failed - Attempting to continue.\n"

	.comm	_RXON_FLG_SHORT_PREAMBLE_MSK,4,2 ; @RXON_FLG_SHORT_PREAMBLE_MSK
	.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
	.no_dead_strip	_il4965_config_ap
.subsections_via_symbols
