	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwlagn_send_tx_power           ## -- Begin function iwlagn_send_tx_power
	.p2align	4, 0x90
_iwlagn_send_tx_power:                  ## @iwlagn_send_tx_power
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_STATUS_SCAN_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%rbx), %rsi
	callq	_test_bit
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_WARN_ONCE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movslq	(%rbx), %rax
	addq	%rax, %rax
	movq	16(%rbx), %rcx
	movq	(%rcx), %rcx
	cmpq	%rax, %rcx
	cmovlq	%rcx, %rax
	movq	%rax, -24(%rbp)
	movq	_IWLAGN_TX_POWER_NO_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -12(%rbp)
	movq	_IWLAGN_TX_POWER_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_IWL_UCODE_API
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.4:
	movq	_REPLY_TX_POWER_DBM_CMD_V1@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_REPLY_TX_POWER_DBM_CMD@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	leaq	-24(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$16, %ecx
	callq	_iwl_dvm_send_cmd_pdu
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_SCAN_HW,4,2             ## @STATUS_SCAN_HW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX Power requested while scanning!\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_IWLAGN_TX_POWER_NO_CLOSED,4,2  ## @IWLAGN_TX_POWER_NO_CLOSED
	.comm	_IWLAGN_TX_POWER_AUTO,4,2       ## @IWLAGN_TX_POWER_AUTO
	.comm	_REPLY_TX_POWER_DBM_CMD_V1,4,2  ## @REPLY_TX_POWER_DBM_CMD_V1
	.comm	_REPLY_TX_POWER_DBM_CMD,4,2     ## @REPLY_TX_POWER_DBM_CMD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwlagn_send_tx_power           ; -- Begin function iwlagn_send_tx_power
	.p2align	2
_iwlagn_send_tx_power:                  ; @iwlagn_send_tx_power
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _STATUS_SCAN_HW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS_SCAN_HW@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_test_bit
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN_ONCE
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	ldrsw	x8, [x19]
	lsl	x8, x8, #1
	ldp	x10, x9, [x19, #8]
	ldr	x9, [x9]
	cmp	x9, x8
	csel	x8, x9, x8, lt
	str	x8, [sp]
Lloh8:
	adrp	x8, _IWLAGN_TX_POWER_NO_CLOSED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IWLAGN_TX_POWER_NO_CLOSED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _IWLAGN_TX_POWER_AUTO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IWLAGN_TX_POWER_AUTO@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
	ldr	w0, [x10]
	bl	_IWL_UCODE_API
Lloh14:
	adrp	x8, _REPLY_TX_POWER_DBM_CMD_V1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REPLY_TX_POWER_DBM_CMD_V1@GOTPAGEOFF]
Lloh16:
	adrp	x9, _REPLY_TX_POWER_DBM_CMD@GOTPAGE
Lloh17:
	ldr	x9, [x9, _REPLY_TX_POWER_DBM_CMD@GOTPAGEOFF]
	cmp	w0, #1
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x4, sp
	mov	x0, x19
	mov	w2, #0
	mov	w3, #16
	bl	_iwl_dvm_send_cmd_pdu
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_SCAN_HW,4,2             ; @STATUS_SCAN_HW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX Power requested while scanning!\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_IWLAGN_TX_POWER_NO_CLOSED,4,2  ; @IWLAGN_TX_POWER_NO_CLOSED
	.comm	_IWLAGN_TX_POWER_AUTO,4,2       ; @IWLAGN_TX_POWER_AUTO
	.comm	_REPLY_TX_POWER_DBM_CMD_V1,4,2  ; @REPLY_TX_POWER_DBM_CMD_V1
	.comm	_REPLY_TX_POWER_DBM_CMD,4,2     ; @REPLY_TX_POWER_DBM_CMD
.subsections_via_symbols
