	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00lib_config               ## -- Begin function rt2x00lib_config
	.p2align	4, 0x90
_rt2x00lib_config:                      ## @rt2x00lib_config
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%r14, -48(%rbp)
	movq	_IEEE80211_CONF_CHANGE_CHANNEL@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_8
## %bb.1:
	movq	%r14, %rdi
	callq	_conf_is_ht
	leaq	24(%r12), %rbx
	movq	_CONFIG_HT_DISABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rbx, %rsi
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	callq	_clear_bit
	jmp	LBB0_4
LBB0_2:
	callq	_set_bit
LBB0_4:
	movq	%r14, %rdi
	callq	_conf_is_ht40
	movq	_CONFIG_CHANNEL_HT40@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rbx, %rsi
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	callq	_set_bit
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_rt2x00ht_center_channel
	movq	%rax, %rbx
	jmp	LBB0_7
LBB0_6:
	callq	_clear_bit
	movq	32(%r14), %rax
	movq	(%rax), %rbx
LBB0_7:
	shlq	$2, %rbx
	movq	72(%r12), %rsi
	addq	%rbx, %rsi
	leaq	-56(%rbp), %rdi
	movl	$4, %edx
	callq	_memcpy
	leaq	-52(%rbp), %rdi
	addq	64(%r12), %rbx
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	-56(%rbp), %eax
	movl	%eax, 56(%r12)
LBB0_8:
	movq	_REQUIRE_PS_AUTOWAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_has_cap_flag
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	_IEEE80211_CONF_CHANGE_PS@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	callq	_cancel_delayed_work_sync
LBB0_11:
	movq	48(%r12), %rax
	movq	(%rax), %rax
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	*(%rax)
	movq	_IEEE80211_CONF_PS@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	leaq	24(%r12), %rbx
	movq	_CONFIG_POWERSAVING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testl	%eax, (%r14)
	je	LBB0_13
## %bb.12:
	movq	%rbx, %rsi
	callq	_set_bit
	jmp	LBB0_14
LBB0_13:
	movq	%rbx, %rsi
	callq	_clear_bit
LBB0_14:
	movq	_IEEE80211_CONF_MONITOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CONFIG_MONITORING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testl	%eax, (%r14)
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rsi
	callq	_set_bit
	jmp	LBB0_17
LBB0_16:
	movq	%rbx, %rsi
	callq	_clear_bit
LBB0_17:
	movq	_IEEE80211_CONF_CHANGE_CHANNEL@GOTPCREL(%rip), %rcx
	movq	32(%r14), %rax
	movsd	8(%rax), %xmm0                  ## xmm0 = mem[0],zero
	movsd	20(%r14), %xmm1                 ## xmm1 = mem[0],zero
	movlhps	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movups	%xmm1, 32(%r12)
	movl	16(%r14), %eax
	movl	%eax, 28(%r12)
	testl	%r15d, (%rcx)
	je	LBB0_19
## %bb.18:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_rt2x00link_reset_tuner
LBB0_19:
	movq	_DEVICE_STATE_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_24
## %bb.20:
	movq	_REQUIRE_PS_AUTOWAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_has_cap_flag
	testq	%rax, %rax
	je	LBB0_24
## %bb.21:
	movq	_IEEE80211_CONF_CHANGE_PS@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_24
## %bb.22:
	movl	(%r13), %eax
	testl	%eax, (%r14)
	je	LBB0_24
## %bb.23:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	subq	16(%r12), %rbx
	movl	8(%r12), %edi
	callq	_msecs_to_jiffies
	movq	8(%r14), %rcx
	imulq	%rax, %rcx
	movq	$-15, %rsi
	movq	$-15, %rdx
	subq	%rbx, %rdx
	cmpq	%rax, %rbx
	movl	4(%r12), %edi
	cmovaq	%rsi, %rdx
	addq	%rcx, %rdx
	movq	%r12, %rsi
	callq	_queue_delayed_work
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CONF_CHANGE_CHANNEL,4,2 ## @IEEE80211_CONF_CHANGE_CHANNEL
	.comm	_CONFIG_HT_DISABLED,4,2         ## @CONFIG_HT_DISABLED
	.comm	_CONFIG_CHANNEL_HT40,4,2        ## @CONFIG_CHANNEL_HT40
	.comm	_REQUIRE_PS_AUTOWAKE,4,2        ## @REQUIRE_PS_AUTOWAKE
	.comm	_IEEE80211_CONF_CHANGE_PS,4,2   ## @IEEE80211_CONF_CHANGE_PS
	.comm	_IEEE80211_CONF_PS,4,2          ## @IEEE80211_CONF_PS
	.comm	_CONFIG_POWERSAVING,4,2         ## @CONFIG_POWERSAVING
	.comm	_IEEE80211_CONF_MONITOR,4,2     ## @IEEE80211_CONF_MONITOR
	.comm	_CONFIG_MONITORING,4,2          ## @CONFIG_MONITORING
	.comm	_DEVICE_STATE_PRESENT,4,2       ## @DEVICE_STATE_PRESENT
	.comm	_jiffies,8,3                    ## @jiffies
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00lib_config               ; -- Begin function rt2x00lib_config
	.p2align	2
_rt2x00lib_config:                      ; @rt2x00lib_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	str	x20, [sp, #8]
Lloh0:
	adrp	x23, _IEEE80211_CONF_CHANGE_CHANNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IEEE80211_CONF_CHANGE_CHANNEL@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.1:
	mov	x0, x20
	bl	_conf_is_ht
	mov	x8, x0
Lloh2:
	adrp	x9, _CONFIG_HT_DISABLED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CONFIG_HT_DISABLED@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
	add	x22, x19, #24
	mov	x1, x22
	cbz	w8, LBB0_3
; %bb.2:
	bl	_clear_bit
	b	LBB0_4
LBB0_3:
	bl	_set_bit
LBB0_4:
	mov	x0, x20
	bl	_conf_is_ht40
	mov	x8, x0
Lloh5:
	adrp	x9, _CONFIG_CHANNEL_HT40@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CONFIG_CHANNEL_HT40@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
	mov	x1, x22
	cbz	x8, LBB0_6
; %bb.5:
	bl	_set_bit
	mov	x0, x19
	mov	x1, x20
	bl	_rt2x00ht_center_channel
	b	LBB0_7
LBB0_6:
	bl	_clear_bit
	ldr	x8, [x20, #32]
	ldr	x0, [x8]
LBB0_7:
	ldr	x8, [x19, #72]
	lsl	x22, x0, #2
	add	x1, x8, x22
	mov	x24, sp
	mov	x0, sp
	mov	w2, #4
	bl	_memcpy
	orr	x0, x24, #0x4
	ldr	x8, [x19, #64]
	add	x1, x8, x22
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [sp]
	str	w8, [x19, #56]
LBB0_8:
Lloh8:
	adrp	x25, _REQUIRE_PS_AUTOWAKE@GOTPAGE
Lloh9:
	ldr	x25, [x25, _REQUIRE_PS_AUTOWAKE@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_rt2x00_has_cap_flag
Lloh10:
	adrp	x24, _IEEE80211_CONF_CHANGE_PS@GOTPAGE
Lloh11:
	ldr	x24, [x24, _IEEE80211_CONF_CHANGE_PS@GOTPAGEOFF]
	cbz	x0, LBB0_11
; %bb.9:
	ldr	w8, [x24]
	tst	w8, w21
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_cancel_delayed_work_sync
LBB0_11:
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x1, sp
	mov	x0, x19
	mov	x2, x21
	blr	x8
	ldr	w8, [x20]
Lloh12:
	adrp	x26, _IEEE80211_CONF_PS@GOTPAGE
Lloh13:
	ldr	x26, [x26, _IEEE80211_CONF_PS@GOTPAGEOFF]
	ldr	w9, [x26]
Lloh14:
	adrp	x10, _CONFIG_POWERSAVING@GOTPAGE
Lloh15:
	ldr	x10, [x10, _CONFIG_POWERSAVING@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x10]
	add	x22, x19, #24
	mov	x1, x22
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	bl	_set_bit
	b	LBB0_14
LBB0_13:
	bl	_clear_bit
LBB0_14:
Lloh17:
	adrp	x8, _IEEE80211_CONF_MONITOR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IEEE80211_CONF_MONITOR@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x10, _CONFIG_MONITORING@GOTPAGE
Lloh21:
	ldr	x10, [x10, _CONFIG_MONITORING@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x10]
	mov	x1, x22
	tst	w8, w9
	b.eq	LBB0_16
; %bb.15:
	bl	_set_bit
	b	LBB0_17
LBB0_16:
	bl	_clear_bit
LBB0_17:
	ldr	x8, [x20, #32]
	ldr	d0, [x8, #8]
	ldur	d1, [x20, #20]
	mov.d	v1[1], v0[0]
	str	q1, [x19, #32]
	ldr	w8, [x20, #16]
	str	w8, [x19, #28]
	ldr	w8, [x23]
	tst	w8, w21
	b.eq	LBB0_19
; %bb.18:
	mov	x0, x19
	mov	w1, #0
	bl	_rt2x00link_reset_tuner
LBB0_19:
Lloh23:
	adrp	x8, _DEVICE_STATE_PRESENT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DEVICE_STATE_PRESENT@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_24
; %bb.20:
	ldr	w1, [x25]
	mov	x0, x19
	bl	_rt2x00_has_cap_flag
	cbz	x0, LBB0_24
; %bb.21:
	ldr	w8, [x24]
	tst	w8, w21
	b.eq	LBB0_24
; %bb.22:
	ldr	w8, [x20]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.23:
Lloh26:
	adrp	x8, _jiffies@GOTPAGE
Lloh27:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	sub	x21, x8, x9
	ldr	w0, [x19, #8]
	bl	_msecs_to_jiffies
	ldr	x9, [x20, #8]
	ldr	w8, [x19, #4]
	mov	x10, #-15
	sub	x11, x10, x21
	cmp	x21, x0
	csel	x10, x10, x11, hi
	madd	x2, x9, x0, x10
	mov	x0, x8
	mov	x1, x19
	bl	_queue_delayed_work
LBB0_24:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CONF_CHANGE_CHANNEL,4,2 ; @IEEE80211_CONF_CHANGE_CHANNEL
	.comm	_CONFIG_HT_DISABLED,4,2         ; @CONFIG_HT_DISABLED
	.comm	_CONFIG_CHANNEL_HT40,4,2        ; @CONFIG_CHANNEL_HT40
	.comm	_REQUIRE_PS_AUTOWAKE,4,2        ; @REQUIRE_PS_AUTOWAKE
	.comm	_IEEE80211_CONF_CHANGE_PS,4,2   ; @IEEE80211_CONF_CHANGE_PS
	.comm	_IEEE80211_CONF_PS,4,2          ; @IEEE80211_CONF_PS
	.comm	_CONFIG_POWERSAVING,4,2         ; @CONFIG_POWERSAVING
	.comm	_IEEE80211_CONF_MONITOR,4,2     ; @IEEE80211_CONF_MONITOR
	.comm	_CONFIG_MONITORING,4,2          ; @CONFIG_MONITORING
	.comm	_DEVICE_STATE_PRESENT,4,2       ; @DEVICE_STATE_PRESENT
	.comm	_jiffies,8,3                    ; @jiffies
.subsections_via_symbols
