	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800_disable_unused_dac_adc
_rt2800_disable_unused_dac_adc:         ## @rt2800_disable_unused_dac_adc
	.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
	movq	%rdi, %r14
	movl	$138, %esi
	callq	_rt2800_bbp_read
	movl	%eax, %r15d
	movq	_EEPROM_NIC_CONF0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2800_eeprom_read
	movl	%eax, %r12d
	movq	_EEPROM_NIC_CONF0_TXPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_rt2x00_get_field16
	movl	%r15d, %ebx
	orl	$32, %ebx
	cmpl	$1, %eax
	cmovnel	%r15d, %ebx
	movq	_EEPROM_NIC_CONF0_RXPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_rt2x00_get_field16
	movl	%ebx, %edx
	andl	$-3, %edx
	cmpl	$1, %eax
	cmovnel	%ebx, %edx
	movq	%r14, %rdi
	movl	$138, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rt2800_bbp_write               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPROM_NIC_CONF0,4,2           ## @EEPROM_NIC_CONF0
	.comm	_EEPROM_NIC_CONF0_TXPATH,4,2    ## @EEPROM_NIC_CONF0_TXPATH
	.comm	_EEPROM_NIC_CONF0_RXPATH,4,2    ## @EEPROM_NIC_CONF0_RXPATH
	.no_dead_strip	_rt2800_disable_unused_dac_adc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800_disable_unused_dac_adc
_rt2800_disable_unused_dac_adc:         ; @rt2800_disable_unused_dac_adc
	.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, x0
	mov	w1, #138
	bl	_rt2800_bbp_read
	mov	x20, x0
Lloh0:
	adrp	x8, _EEPROM_NIC_CONF0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEPROM_NIC_CONF0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2800_eeprom_read
	mov	x21, x0
Lloh3:
	adrp	x8, _EEPROM_NIC_CONF0_TXPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EEPROM_NIC_CONF0_TXPATH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_rt2x00_get_field16
	orr	w8, w20, #0x20
	cmp	w0, #1
	csel	w20, w8, w20, eq
Lloh6:
	adrp	x8, _EEPROM_NIC_CONF0_RXPATH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EEPROM_NIC_CONF0_RXPATH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_rt2x00_get_field16
	and	w8, w20, #0xfffffffd
	cmp	w0, #1
	csel	w2, w8, w20, eq
	mov	x0, x19
	mov	w1, #138
	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	_rt2800_bbp_write
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROM_NIC_CONF0,4,2           ; @EEPROM_NIC_CONF0
	.comm	_EEPROM_NIC_CONF0_TXPATH,4,2    ; @EEPROM_NIC_CONF0_TXPATH
	.comm	_EEPROM_NIC_CONF0_RXPATH,4,2    ; @EEPROM_NIC_CONF0_RXPATH
	.no_dead_strip	_rt2800_disable_unused_dac_adc
.subsections_via_symbols
