	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw2100_wx_get_txpow
_ipw2100_wx_get_txpow:                  ## @ipw2100_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_libipw_priv
	movq	_STATUS_RF_KILL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	andl	(%rax), %ecx
	setne	%dl
	movl	%edx, (%rbx)
	movq	8(%rax), %rcx
	movq	_IPW_TX_POWER_DEFAULT@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rcx
	setne	%sil
	movl	%esi, 4(%rbx)
	jne	LBB0_1
## %bb.2:
	movq	_IPW_TX_POWER_MAX_DBM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	addq	$8, %rax
LBB0_3:
	movq	(%rax), %rsi
	movq	%rsi, 8(%rbx)
	movq	_IW_TXPOW_DBM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	leaq	L_.str(%rip), %rdi
	callq	_IPW_DEBUG_WX
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_RF_KILL_MASK,4,2        ## @STATUS_RF_KILL_MASK
	.comm	_IPW_TX_POWER_DEFAULT,8,3       ## @IPW_TX_POWER_DEFAULT
	.comm	_IPW_TX_POWER_MAX_DBM,8,3       ## @IPW_TX_POWER_MAX_DBM
	.comm	_IW_TXPOW_DBM,4,2               ## @IW_TXPOW_DBM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GET TX Power -> %d\n"

	.no_dead_strip	_ipw2100_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 ipw2100_wx_get_txpow
_ipw2100_wx_get_txpow:                  ; @ipw2100_wx_get_txpow
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_libipw_priv
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _STATUS_RF_KILL_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STATUS_RF_KILL_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x19]
	ldr	x8, [x0, #8]!
Lloh3:
	adrp	x9, _IPW_TX_POWER_DEFAULT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPW_TX_POWER_DEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _IPW_TX_POWER_MAX_DBM@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IPW_TX_POWER_MAX_DBM@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x0, eq
	cset	w9, ne
	str	w9, [x19, #4]
	ldr	x1, [x8]
	str	x1, [x19, #8]
Lloh8:
	adrp	x8, _IW_TXPOW_DBM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IW_TXPOW_DBM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_WX
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_RF_KILL_MASK,4,2        ; @STATUS_RF_KILL_MASK
	.comm	_IPW_TX_POWER_DEFAULT,8,3       ; @IPW_TX_POWER_DEFAULT
	.comm	_IPW_TX_POWER_MAX_DBM,8,3       ; @IPW_TX_POWER_MAX_DBM
	.comm	_IW_TXPOW_DBM,4,2               ; @IW_TXPOW_DBM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GET TX Power -> %d\n"

	.no_dead_strip	_ipw2100_wx_get_txpow
.subsections_via_symbols
