	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_wx_get_txpow
_ipw_wx_get_txpow:                      ## @ipw_wx_get_txpow
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	callq	_libipw_priv
	movq	%rax, %r14
	leaq	4(%rax), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	8(%r14), %eax
	movl	%eax, 8(%rbx)
	movl	$1, (%rbx)
	movq	_IW_TXPOW_DBM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_STATUS_RF_KILL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%r14), %eax
	setne	%cl
	movl	%ecx, 4(%rbx)
	movq	%r15, %rdi
	callq	_mutex_unlock
	cmpl	$0, 4(%rbx)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	callq	_IPW_DEBUG_WX
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IW_TXPOW_DBM,4,2               ## @IW_TXPOW_DBM
	.comm	_STATUS_RF_KILL_MASK,4,2        ## @STATUS_RF_KILL_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GET TX Power -> %s %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"OFF"

L_.str.2:                               ## @.str.2
	.asciz	"ON"

	.no_dead_strip	_ipw_wx_get_txpow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_wx_get_txpow
_ipw_wx_get_txpow:                      ; @ipw_wx_get_txpow
	.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	x19, x2
	bl	_libipw_priv
	mov	x20, x0
	add	x21, x0, #4
	mov	x0, x21
	bl	_mutex_lock
	ldr	w8, [x20, #8]
	mov	w9, #1
	str	w9, [x19]
Lloh0:
	adrp	x9, _IW_TXPOW_DBM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IW_TXPOW_DBM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #8]
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _STATUS_RF_KILL_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STATUS_RF_KILL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x19, #4]
	mov	x0, x21
	bl	_mutex_unlock
Lloh6:
	adrp	x8, l_.str.1@PAGE
Lloh7:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh8:
	adrp	x9, l_.str.2@PAGE
Lloh9:
	add	x9, x9, l_.str.2@PAGEOFF
	ldp	w10, w2, [x19, #4]
	cmp	w10, #0
	csel	x1, x9, x8, eq
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_WX
	mov	w0, #0
	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 AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_TXPOW_DBM,4,2               ; @IW_TXPOW_DBM
	.comm	_STATUS_RF_KILL_MASK,4,2        ; @STATUS_RF_KILL_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GET TX Power -> %s %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"OFF"

l_.str.2:                               ; @.str.2
	.asciz	"ON"

	.no_dead_strip	_ipw_wx_get_txpow
.subsections_via_symbols
