	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800_get_txmixer_gain_5g
_rt2800_get_txmixer_gain_5g:            ## @rt2800_get_txmixer_gain_5g
	.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	%rdi, %rbx
	movq	_RT3593@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	_RT3883@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_EEPROM_TXMIXER_GAIN_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2800_eeprom_read
	cmpb	$-1, %al
	jne	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	_EEPROM_TXMIXER_GAIN_A_VAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_rt2x00_get_field16             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RT3593,4,2                     ## @RT3593
	.comm	_RT3883,4,2                     ## @RT3883
	.comm	_EEPROM_TXMIXER_GAIN_A,4,2      ## @EEPROM_TXMIXER_GAIN_A
	.comm	_EEPROM_TXMIXER_GAIN_A_VAL,4,2  ## @EEPROM_TXMIXER_GAIN_A_VAL
	.no_dead_strip	_rt2800_get_txmixer_gain_5g
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800_get_txmixer_gain_5g
_rt2800_get_txmixer_gain_5g:            ; @rt2800_get_txmixer_gain_5g
	.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, x0
Lloh0:
	adrp	x8, _RT3593@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RT3593@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rt2x00_rt
	cbnz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _RT3883@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RT3883@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _EEPROM_TXMIXER_GAIN_A@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EEPROM_TXMIXER_GAIN_A@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2800_eeprom_read
	mvn	w8, w0
	tst	w8, #0xff
	b.ne	LBB0_4
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh9:
	adrp	x8, _EEPROM_TXMIXER_GAIN_A_VAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EEPROM_TXMIXER_GAIN_A_VAL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rt2x00_get_field16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RT3593,4,2                     ; @RT3593
	.comm	_RT3883,4,2                     ; @RT3883
	.comm	_EEPROM_TXMIXER_GAIN_A,4,2      ; @EEPROM_TXMIXER_GAIN_A
	.comm	_EEPROM_TXMIXER_GAIN_A_VAL,4,2  ; @EEPROM_TXMIXER_GAIN_A_VAL
	.no_dead_strip	_rt2800_get_txmixer_gain_5g
.subsections_via_symbols
