	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uw2453_set_tx_gain_level
_uw2453_set_tx_gain_level:              ## @uw2453_set_tx_gain_level
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movslq	%esi, %rcx
	movq	-8(%rax,%rcx,8), %rbx
	movq	_uw2453_txgain@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %rbx
	jae	LBB0_1
## %bb.2:
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movl	$7, %edi
	callq	_UW2453_REGWRITE
	movq	_RF_RV_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_zd_rfwrite_locked              ## TAILCALL
LBB0_1:
	movq	%r15, %rdi
	callq	_zd_chip_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_dev_dbg_f
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uw2453_txgain,8,3              ## @uw2453_txgain
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't configure TX gain for int value %x on channel %d\n"

	.comm	_RF_RV_BITS,4,2                 ## @RF_RV_BITS
	.no_dead_strip	_uw2453_set_tx_gain_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uw2453_set_tx_gain_level
_uw2453_set_tx_gain_level:              ; @uw2453_set_tx_gain_level
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	sub	w9, w1, #1
	ldr	x21, [x8, w9, sxtw #3]
Lloh0:
	adrp	x22, _uw2453_txgain@GOTPAGE
Lloh1:
	ldr	x22, [x22, _uw2453_txgain@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	x21, x0
	b.hs	LBB0_2
; %bb.1:
	ldr	x8, [x22]
	ldr	w1, [x8, x21, lsl #2]
	mov	w0, #7
	bl	_UW2453_REGWRITE
	mov	x1, x0
Lloh2:
	adrp	x8, _RF_RV_BITS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RF_RV_BITS@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	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	_zd_rfwrite_locked
LBB0_2:
	mov	x0, x19
	bl	_zd_chip_dev
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_dev_dbg_f
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_uw2453_txgain,8,3              ; @uw2453_txgain
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't configure TX gain for int value %x on channel %d\n"

	.comm	_RF_RV_BITS,4,2                 ; @RF_RV_BITS
	.no_dead_strip	_uw2453_set_tx_gain_level
.subsections_via_symbols
