	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rear_amp_power
_rear_amp_power:                        ## @rear_amp_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_AC97_GPIO_CFG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_snd_soc_read
                                        ## kill: def $ax killed $ax def $eax
	movl	(%r15), %esi
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	orl	$256, %eax                      ## imm = 0x100
	movzwl	%ax, %edx
	movq	%rbx, %rdi
	callq	_snd_soc_write
	movq	_AC97_GPIO_PULL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_snd_soc_read
                                        ## kill: def $ax killed $ax def $eax
	movl	(%r14), %esi
	orl	$32768, %eax                    ## imm = 0x8000
	movzwl	%ax, %edx
	movq	%rbx, %rdi
	jmp	LBB0_3
LBB0_2:
	andl	$65279, %eax                    ## imm = 0xFEFF
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_snd_soc_write
	movq	_AC97_GPIO_PULL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_snd_soc_read
                                        ## kill: def $ax killed $ax def $eax
	movl	(%r14), %esi
	andl	$32767, %eax                    ## imm = 0x7FFF
	movq	%rbx, %rdi
	movl	%eax, %edx
LBB0_3:
	callq	_snd_soc_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC97_GPIO_CFG,4,2              ## @AC97_GPIO_CFG
	.comm	_AC97_GPIO_PULL,4,2             ## @AC97_GPIO_PULL
	.no_dead_strip	_rear_amp_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rear_amp_power
_rear_amp_power:                        ; @rear_amp_power
	.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
Lloh0:
	adrp	x21, _AC97_GPIO_CFG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AC97_GPIO_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_snd_soc_read
	ldr	w1, [x21]
	cbz	w20, LBB0_2
; %bb.1:
	orr	w2, w0, #0x100
	mov	x0, x19
	bl	_snd_soc_write
Lloh2:
	adrp	x20, _AC97_GPIO_PULL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _AC97_GPIO_PULL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_soc_read
	ldr	w1, [x20]
	orr	w2, w0, #0x8000
	b	LBB0_3
LBB0_2:
	and	w2, w0, #0xfffffeff
	mov	x0, x19
	bl	_snd_soc_write
Lloh4:
	adrp	x20, _AC97_GPIO_PULL@GOTPAGE
Lloh5:
	ldr	x20, [x20, _AC97_GPIO_PULL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_soc_read
	ldr	w1, [x20]
	and	w2, w0, #0x7fff
LBB0_3:
	mov	x0, x19
	bl	_snd_soc_write
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AC97_GPIO_CFG,4,2              ; @AC97_GPIO_CFG
	.comm	_AC97_GPIO_PULL,4,2             ; @AC97_GPIO_PULL
	.no_dead_strip	_rear_amp_power
.subsections_via_symbols
