	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7615_config
_mt7615_config:                         ## @mt7615_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	_IEEE80211_CONF_CHANGE_CHANNEL@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_ieee80211_stop_queues
	movq	%rbx, %rdi
	callq	_mt7615_set_channel
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_ieee80211_wake_queues
	jmp	LBB0_3
LBB0_1:
	xorl	%r14d, %r14d
LBB0_3:
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_IEEE80211_CONF_CHANGE_POWER@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_mt7615_mcu_set_tx_power
	movl	%eax, %r14d
LBB0_5:
	movq	_IEEE80211_CONF_CHANGE_MONITOR@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_10
## %bb.6:
	movq	_IEEE80211_CONF_MONITOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MT_WF_RFCR_DROP_OTHER_UC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, (%r15)
	je	LBB0_7
## %bb.8:
	notl	%edx
	andl	4(%rbx), %edx
	jmp	LBB0_9
LBB0_7:
	orl	4(%rbx), %edx
LBB0_9:
	movl	%edx, 4(%rbx)
	movq	_MT_WF_RFCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mt76_wr
LBB0_10:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CONF_CHANGE_CHANNEL,4,2 ## @IEEE80211_CONF_CHANGE_CHANNEL
	.comm	_IEEE80211_CONF_CHANGE_POWER,4,2 ## @IEEE80211_CONF_CHANGE_POWER
	.comm	_IEEE80211_CONF_CHANGE_MONITOR,4,2 ## @IEEE80211_CONF_CHANGE_MONITOR
	.comm	_IEEE80211_CONF_MONITOR,4,2     ## @IEEE80211_CONF_MONITOR
	.comm	_MT_WF_RFCR_DROP_OTHER_UC,4,2   ## @MT_WF_RFCR_DROP_OTHER_UC
	.comm	_MT_WF_RFCR,4,2                 ## @MT_WF_RFCR
	.no_dead_strip	_mt7615_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7615_config
_mt7615_config:                         ; @mt7615_config
	.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	x22, x1
	mov	x21, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _IEEE80211_CONF_CHANGE_CHANNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_CONF_CHANGE_CHANNEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_ieee80211_stop_queues
	mov	x0, x19
	bl	_mt7615_set_channel
	mov	x20, x0
	mov	x0, x21
	bl	_ieee80211_wake_queues
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
	mov	x0, x19
	bl	_mutex_lock
Lloh3:
	adrp	x8, _IEEE80211_CONF_CHANGE_POWER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_CONF_CHANGE_POWER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_mt7615_mcu_set_tx_power
	mov	x20, x0
LBB0_5:
Lloh6:
	adrp	x8, _IEEE80211_CONF_CHANGE_MONITOR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_CONF_CHANGE_MONITOR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_10
; %bb.6:
Lloh9:
	adrp	x8, _IEEE80211_CONF_MONITOR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_CONF_MONITOR@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh11:
	ldr	w10, [x8]
Lloh12:
	adrp	x8, _MT_WF_RFCR_DROP_OTHER_UC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MT_WF_RFCR_DROP_OTHER_UC@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.7:
	ldr	w9, [x19, #4]
	bic	w2, w9, w8
	b	LBB0_9
LBB0_8:
	ldr	w9, [x19, #4]
	orr	w2, w9, w8
LBB0_9:
	str	w2, [x19, #4]
Lloh15:
	adrp	x8, _MT_WF_RFCR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MT_WF_RFCR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mt76_wr
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CONF_CHANGE_CHANNEL,4,2 ; @IEEE80211_CONF_CHANGE_CHANNEL
	.comm	_IEEE80211_CONF_CHANGE_POWER,4,2 ; @IEEE80211_CONF_CHANGE_POWER
	.comm	_IEEE80211_CONF_CHANGE_MONITOR,4,2 ; @IEEE80211_CONF_CHANGE_MONITOR
	.comm	_IEEE80211_CONF_MONITOR,4,2     ; @IEEE80211_CONF_MONITOR
	.comm	_MT_WF_RFCR_DROP_OTHER_UC,4,2   ; @MT_WF_RFCR_DROP_OTHER_UC
	.comm	_MT_WF_RFCR,4,2                 ; @MT_WF_RFCR
	.no_dead_strip	_mt7615_config
.subsections_via_symbols
