	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amd_acp_hw_init                ## -- Begin function amd_acp_hw_init
	.p2align	4, 0x90
_amd_acp_hw_init:                       ## @amd_acp_hw_init
	.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	_ACP_MODE_I2S@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	movl	%r8d, %eax
	cmpl	$2, %esi
	jne	LBB0_3
## %bb.1:
	cmpl	$2, %edx
	jne	LBB0_3
## %bb.2:
	movq	_mmACP_AZALIA_I2S_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cgs_read_register
	movl	(%rbx), %r8d
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	xorl	%edx, %edx
	cmpl	%r8d, %eax
	cmovel	%edx, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACP_MODE_I2S,4,2               ## @ACP_MODE_I2S
	.comm	_mmACP_AZALIA_I2S_SELECT,4,2    ## @mmACP_AZALIA_I2S_SELECT
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amd_acp_hw_init                ; -- Begin function amd_acp_hw_init
	.p2align	2
_amd_acp_hw_init:                       ; @amd_acp_hw_init
	.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
Lloh0:
	adrp	x19, _ACP_MODE_I2S@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ACP_MODE_I2S@GOTPAGEOFF]
	ldr	w9, [x19]
	mov	x8, x9
	cmp	w1, #2
	b.ne	LBB0_3
; %bb.1:
	cmp	w2, #2
	b.ne	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _mmACP_AZALIA_I2S_SELECT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmACP_AZALIA_I2S_SELECT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_cgs_read_register
	mov	x8, x0
	ldr	w9, [x19]
LBB0_3:
Lloh5:
	adrp	x10, _ENODEV@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ENODEV@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w8, w9
	csneg	w0, wzr, w10, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ACP_MODE_I2S,4,2               ; @ACP_MODE_I2S
	.comm	_mmACP_AZALIA_I2S_SELECT,4,2    ; @mmACP_AZALIA_I2S_SELECT
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
