	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfg80211_wext_giwtxpower
_cfg80211_wext_giwtxpower:              ## @cfg80211_wext_giwtxpower
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	(%rdi), %rbx
	movl	(%rbx), %edi
	callq	_wiphy_to_dev
	movq	%rax, %r14
	movl	(%r15), %eax
	movq	_IW_TXPOW_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_IW_TXPOW_DBM@GOTPCREL(%rip), %r12
	cmpl	(%r12), %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_8:
	addq	$16, %rsp
	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:
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rdev_get_tx_power
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	$1, 4(%r15)
	movl	(%r14), %edi
	callq	_rfkill_blocked
	movl	%eax, 12(%r15)
	movl	-36(%rbp), %eax
	movl	%eax, 8(%r15)
	movl	(%r12), %eax
	movl	%eax, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.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
	.no_dead_strip	_cfg80211_wext_giwtxpower
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfg80211_wext_giwtxpower
_cfg80211_wext_giwtxpower:              ; @cfg80211_wext_giwtxpower
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	ldr	x21, [x0]
	ldr	w0, [x21]
	bl	_wiphy_to_dev
	ldr	w8, [x19]
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	x22, _IW_TXPOW_DBM@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IW_TXPOW_DBM@GOTPAGEOFF]
	ldr	w10, [x22]
	cmp	w9, w10
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x9, _IW_TXPOW_RANGE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IW_TXPOW_RANGE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_2:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_8
; %bb.6:
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x21
	bl	_rdev_get_tx_power
	cbnz	w0, LBB0_4
; %bb.7:
	mov	w8, #1
	str	w8, [x19, #4]
	ldr	w0, [x20]
	bl	_rfkill_blocked
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [sp, #12]
	stp	w9, w8, [x19, #8]
	ldr	w8, [x22]
	str	w8, [x19]
	b	LBB0_4
LBB0_8:
Lloh10:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.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
	.no_dead_strip	_cfg80211_wext_giwtxpower
.subsections_via_symbols
