	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43legacy_op_dev_config
_b43legacy_op_dev_config:               ## @b43legacy_op_dev_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	%esi, %ebx
	movq	%rdi, %r12
	callq	_hw_to_b43legacy_wl
	movq	%rax, %r13
	movq	_B43legacy_ANTENNA_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	8(%r13), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	16(%r13), %r15
	movq	_IEEE80211_CONF_CHANGE_RETRY_LIMITS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%ebx, %eax
	je	LBB0_2
## %bb.1:
	movl	24(%r12), %edx
	movl	28(%r12), %esi
	movq	%r15, %rdi
	callq	_b43legacy_set_retry_limits
	movl	(%r14), %eax
LBB0_2:
	notl	%eax
	xorl	%r14d, %r14d
	testl	%ebx, %eax
	je	LBB0_24
## %bb.3:
	movq	16(%r12), %rax
	cmpl	$128, (%rax)
	jne	LBB0_6
## %bb.4:
	movl	48(%r15), %eax
	movq	_B43legacy_PHYTYPE_B@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.5:
	movq	_B43legacy_PHYMODE_B@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movl	$1, %edi
	callq	_B43legacy_WARN_ON
	movl	$65535, %esi                    ## imm = 0xFFFF
	jmp	LBB0_9
LBB0_7:
	movq	_B43legacy_PHYMODE_G@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
LBB0_9:
	movq	%r13, %rdi
	callq	_b43legacy_switch_phymode
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_24
## %bb.10:
	movq	%r13, %rbx
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, %rdi
	callq	_b43legacy_status
	movq	_B43legacy_STAT_STARTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_23
## %bb.11:
	movq	_B43legacy_MMIO_GEN_IRQ_MASK@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_b43legacy_write32
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	callq	_b43legacy_synchronize_irq
	movq	16(%r12), %rax
	movq	8(%rax), %rsi
	cmpq	24(%r15), %rsi
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_b43legacy_radio_selectchannel
LBB0_13:
	movq	_IEEE80211_CONF_MONITOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%r12), %eax
	setne	%cl
	movq	8(%r15), %rax
	movl	%ecx, (%rax)
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	cmpq	32(%r15), %rax
	je	LBB0_16
## %bb.15:
	movq	%rax, 32(%r15)
	movq	%r15, %rdi
	callq	_b43legacy_phy_xmitpower
LBB0_16:
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_b43legacy_mgmtframe_txantenna
	movq	(%r13), %rax
	cmpq	40(%r15), %rax
	je	LBB0_22
## %bb.17:
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:
	callq	_b43legacy_radio_turn_on
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_b43legacyinfo
	cmpl	$0, 16(%r15)
	jne	LBB0_22
## %bb.19:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_21
LBB0_20:
	xorl	%esi, %esi
	callq	_b43legacy_radio_turn_off
	leaq	L_.str.2(%rip), %rsi
LBB0_21:
	movq	8(%r15), %rdi
	callq	_b43legacyinfo
LBB0_22:
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%r15, %rdi
	callq	_b43legacy_write32
LBB0_23:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%r14d, %r14d
LBB0_24:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43legacy_ANTENNA_DEFAULT,4,2  ## @B43legacy_ANTENNA_DEFAULT
	.comm	_IEEE80211_CONF_CHANGE_RETRY_LIMITS,4,2 ## @IEEE80211_CONF_CHANGE_RETRY_LIMITS
	.comm	_B43legacy_PHYTYPE_B,4,2        ## @B43legacy_PHYTYPE_B
	.comm	_B43legacy_PHYMODE_B,4,2        ## @B43legacy_PHYMODE_B
	.comm	_B43legacy_PHYMODE_G,4,2        ## @B43legacy_PHYMODE_G
	.comm	_B43legacy_STAT_STARTED,8,3     ## @B43legacy_STAT_STARTED
	.comm	_B43legacy_MMIO_GEN_IRQ_MASK,4,2 ## @B43legacy_MMIO_GEN_IRQ_MASK
	.comm	_IEEE80211_CONF_MONITOR,4,2     ## @IEEE80211_CONF_MONITOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Radio turned on by software\n"

L_.str.1:                               ## @.str.1
	.asciz	"The hardware RF-kill button still turns the radio physically off. Press the button to turn it on.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Radio turned off by software\n"

	.no_dead_strip	_b43legacy_op_dev_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43legacy_op_dev_config
_b43legacy_op_dev_config:               ; @b43legacy_op_dev_config
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x1
	mov	x23, x0
	bl	_hw_to_b43legacy_wl
	mov	x21, x0
Lloh0:
	adrp	x8, _B43legacy_ANTENNA_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43legacy_ANTENNA_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x20, [x21, #16]
Lloh3:
	adrp	x25, _IEEE80211_CONF_CHANGE_RETRY_LIMITS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _IEEE80211_CONF_CHANGE_RETRY_LIMITS@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w24
	b.eq	LBB0_2
; %bb.1:
	ldp	w2, w1, [x23, #24]
	mov	x0, x20
	bl	_b43legacy_set_retry_limits
	ldr	w8, [x25]
LBB0_2:
	bics	wzr, w24, w8
	b.eq	LBB0_24
; %bb.3:
	ldr	x8, [x23, #16]
	ldr	w8, [x8]
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x20, #48]
Lloh5:
	adrp	x9, _B43legacy_PHYTYPE_B@GOTPAGE
Lloh6:
	ldr	x9, [x9, _B43legacy_PHYTYPE_B@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.5:
Lloh8:
	adrp	x8, _B43legacy_PHYMODE_B@GOTPAGE
Lloh9:
	ldr	x8, [x8, _B43legacy_PHYMODE_B@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	w0, #1
	bl	_B43legacy_WARN_ON
	mov	w1, #65535
	b	LBB0_9
LBB0_7:
Lloh10:
	adrp	x8, _B43legacy_PHYMODE_G@GOTPAGE
Lloh11:
	ldr	x8, [x8, _B43legacy_PHYMODE_G@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x8]
LBB0_9:
	mov	x0, x21
	bl	_b43legacy_switch_phymode
	mov	x24, x0
	cbnz	w0, LBB0_25
; %bb.10:
	add	x24, x21, #12
	mov	x0, x24
	bl	_spin_lock_irqsave
	mov	x0, x20
	bl	_b43legacy_status
Lloh12:
	adrp	x8, _B43legacy_STAT_STARTED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _B43legacy_STAT_STARTED@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_23
; %bb.11:
Lloh15:
	adrp	x25, _B43legacy_MMIO_GEN_IRQ_MASK@GOTPAGE
Lloh16:
	ldr	x25, [x25, _B43legacy_MMIO_GEN_IRQ_MASK@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	mov	w2, #0
	bl	_b43legacy_write32
	mov	x0, x24
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	bl	_b43legacy_synchronize_irq
	ldr	x8, [x23, #16]
	ldr	x1, [x8, #8]
	ldr	x8, [x20, #24]
	cmp	x1, x8
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x20
	mov	w2, #0
	bl	_b43legacy_radio_selectchannel
LBB0_13:
	ldr	w8, [x23]
Lloh17:
	adrp	x9, _IEEE80211_CONF_MONITOR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IEEE80211_CONF_MONITOR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	ldr	x9, [x20, #8]
	str	w8, [x9]
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_16
; %bb.14:
	ldr	x9, [x20, #32]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.15:
	str	x8, [x20, #32]
	mov	x0, x20
	bl	_b43legacy_phy_xmitpower
LBB0_16:
	mov	x0, x20
	mov	x1, x22
	bl	_b43legacy_mgmtframe_txantenna
	ldr	x8, [x21]
	ldr	x9, [x20, #40]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.17:
	mov	x0, x20
	cbz	x8, LBB0_20
; %bb.18:
	bl	_b43legacy_radio_turn_on
	ldr	x0, [x20, #8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43legacyinfo
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_22
; %bb.19:
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_21
LBB0_20:
	mov	w1, #0
	bl	_b43legacy_radio_turn_off
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_21:
	ldr	x0, [x20, #8]
	bl	_b43legacyinfo
LBB0_22:
	mov	x0, x24
	bl	_spin_lock_irqsave
	ldr	w1, [x25]
	ldr	w2, [x20]
	mov	x0, x20
	bl	_b43legacy_write32
LBB0_23:
	mov	x0, x24
	bl	_spin_unlock_irqrestore
LBB0_24:
	mov	w24, #0
LBB0_25:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x24
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_B43legacy_ANTENNA_DEFAULT,4,2  ; @B43legacy_ANTENNA_DEFAULT
	.comm	_IEEE80211_CONF_CHANGE_RETRY_LIMITS,4,2 ; @IEEE80211_CONF_CHANGE_RETRY_LIMITS
	.comm	_B43legacy_PHYTYPE_B,4,2        ; @B43legacy_PHYTYPE_B
	.comm	_B43legacy_PHYMODE_B,4,2        ; @B43legacy_PHYMODE_B
	.comm	_B43legacy_PHYMODE_G,4,2        ; @B43legacy_PHYMODE_G
	.comm	_B43legacy_STAT_STARTED,8,3     ; @B43legacy_STAT_STARTED
	.comm	_B43legacy_MMIO_GEN_IRQ_MASK,4,2 ; @B43legacy_MMIO_GEN_IRQ_MASK
	.comm	_IEEE80211_CONF_MONITOR,4,2     ; @IEEE80211_CONF_MONITOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Radio turned on by software\n"

l_.str.1:                               ; @.str.1
	.asciz	"The hardware RF-kill button still turns the radio physically off. Press the button to turn it on.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Radio turned off by software\n"

	.no_dead_strip	_b43legacy_op_dev_config
.subsections_via_symbols
