	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfg80211_wext_siwtxpower
_cfg80211_wext_siwtxpower:              ## @cfg80211_wext_siwtxpower
	.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	%rdx, %rbx
	movq	(%rdi), %r15
	movl	(%r15), %edi
	callq	_wiphy_to_dev
	movq	%rax, %r14
	movl	(%rbx), %eax
	movq	_IW_TXPOW_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_IW_TXPOW_DBM@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_1
## %bb.3:
	movq	_IW_TXPOW_RANGE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	8(%r14), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.6:
	cmpl	$0, 16(%rbx)
	movl	4(%r14), %edi
	je	LBB0_7
## %bb.12:
	movl	$1, %esi
	callq	_rfkill_set_sw_state
	movq	%r14, %rdi
	callq	_schedule_work
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_7:
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_rfkill_set_sw_state
	cmpq	$0, 8(%rbx)
	movl	4(%rbx), %edi
	je	LBB0_10
## %bb.8:
	testl	%edi, %edi
	js	LBB0_1
## %bb.9:
	movq	_NL80211_TX_POWER_FIXED@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	testl	%edi, %edi
	movq	_NL80211_TX_POWER_LIMITED@GOTPCREL(%rip), %rax
	cmovsq	_NL80211_TX_POWER_AUTOMATIC@GOTPCREL(%rip), %rax
	cmovlel	%r12d, %edi
LBB0_11:
	movl	(%rax), %ebx
	callq	_DBM_TO_MBM
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rdev_set_tx_power              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IW_TXPOW_TYPE,4,2              ## @IW_TXPOW_TYPE
	.comm	_IW_TXPOW_DBM,4,2               ## @IW_TXPOW_DBM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IW_TXPOW_RANGE,4,2             ## @IW_TXPOW_RANGE
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_NL80211_TX_POWER_FIXED,4,2     ## @NL80211_TX_POWER_FIXED
	.comm	_NL80211_TX_POWER_AUTOMATIC,4,2 ## @NL80211_TX_POWER_AUTOMATIC
	.comm	_NL80211_TX_POWER_LIMITED,4,2   ## @NL80211_TX_POWER_LIMITED
	.no_dead_strip	_cfg80211_wext_siwtxpower
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfg80211_wext_siwtxpower
_cfg80211_wext_siwtxpower:              ; @cfg80211_wext_siwtxpower
	.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	x21, x2
	ldr	x20, [x0]
	ldr	w0, [x20]
	bl	_wiphy_to_dev
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _IW_TXPOW_TYPE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IW_TXPOW_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh3:
	adrp	x10, _IW_TXPOW_DBM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IW_TXPOW_DBM@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, _IW_TXPOW_RANGE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IW_TXPOW_RANGE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_2:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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_5:
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_8
; %bb.6:
	ldr	w8, [x21, #16]
	ldr	w0, [x19, #4]
	cbz	w8, LBB0_9
; %bb.7:
	mov	w1, #1
	bl	_rfkill_set_sw_state
	mov	x0, x19
	bl	_schedule_work
	mov	w0, #0
	b	LBB0_4
LBB0_8:
Lloh11:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_3
LBB0_9:
	mov	w1, #0
	bl	_rfkill_set_sw_state
	ldr	x8, [x21, #8]
	ldr	w0, [x21, #4]
	cbz	x8, LBB0_12
; %bb.10:
	tbnz	w0, #31, LBB0_2
; %bb.11:
Lloh13:
	adrp	x8, _NL80211_TX_POWER_FIXED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NL80211_TX_POWER_FIXED@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh15:
	adrp	x8, _NL80211_TX_POWER_LIMITED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NL80211_TX_POWER_LIMITED@GOTPAGEOFF]
Lloh17:
	adrp	x9, _NL80211_TX_POWER_AUTOMATIC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NL80211_TX_POWER_AUTOMATIC@GOTPAGEOFF]
	cmp	w0, #0
	csel	w0, w0, wzr, gt
	csel	x8, x9, x8, lt
LBB0_13:
	ldr	w21, [x8]
	bl	_DBM_TO_MBM
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	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	_rdev_set_tx_power
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_TXPOW_TYPE,4,2              ; @IW_TXPOW_TYPE
	.comm	_IW_TXPOW_DBM,4,2               ; @IW_TXPOW_DBM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IW_TXPOW_RANGE,4,2             ; @IW_TXPOW_RANGE
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_NL80211_TX_POWER_FIXED,4,2     ; @NL80211_TX_POWER_FIXED
	.comm	_NL80211_TX_POWER_AUTOMATIC,4,2 ; @NL80211_TX_POWER_AUTOMATIC
	.comm	_NL80211_TX_POWER_LIMITED,4,2   ; @NL80211_TX_POWER_LIMITED
	.no_dead_strip	_cfg80211_wext_siwtxpower
.subsections_via_symbols
