	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcxhr_sub_init
_pcxhr_sub_init:                        ## @pcxhr_sub_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_CMD_ACCESS_IO_READ@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_pcxhr_init_rmh
	movq	_IO_NUM_REG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx
	orl	%eax, (%rcx)
	movq	_REG_STATUS_OPTIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movl	$2, -40(%rbp)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pcxhr_send_msg
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	-32(%rbp), %rax
	movq	_REG_STATUS_OPT_DAUGHTER_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	4(%rax), %ecx
	movq	_REG_STATUS_OPT_ANALOG_BOARD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_3
## %bb.2:
	movl	$1, (%r14)
LBB0_3:
	movq	_REG_CONT_UNMUTE_INPUTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%edx, %esi
	xorl	%ecx, %ecx
	callq	_pcxhr_write_io_num_reg_cont
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movl	(%r15), %esi
	leaq	-48(%rbp), %rdi
	callq	_pcxhr_init_rmh
	movq	_IO_NUM_REG_MUTE_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx
	orl	%eax, (%rcx)
	movq	%r14, %rdi
	callq	_DSP_EXT_CMD_SET
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	-48(%rbp), %rax
	movl	$1, 4(%rax)
	movl	$2, -40(%rbp)
LBB0_6:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_pcxhr_send_msg
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_ACCESS_IO_READ,4,2         ## @CMD_ACCESS_IO_READ
	.comm	_IO_NUM_REG_STATUS,4,2          ## @IO_NUM_REG_STATUS
	.comm	_REG_STATUS_OPTIONS,4,2         ## @REG_STATUS_OPTIONS
	.comm	_REG_STATUS_OPT_DAUGHTER_MASK,4,2 ## @REG_STATUS_OPT_DAUGHTER_MASK
	.comm	_REG_STATUS_OPT_ANALOG_BOARD,4,2 ## @REG_STATUS_OPT_ANALOG_BOARD
	.comm	_REG_CONT_UNMUTE_INPUTS,4,2     ## @REG_CONT_UNMUTE_INPUTS
	.comm	_IO_NUM_REG_MUTE_OUT,4,2        ## @IO_NUM_REG_MUTE_OUT
	.no_dead_strip	_pcxhr_sub_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcxhr_sub_init
_pcxhr_sub_init:                        ; @pcxhr_sub_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, _CMD_ACCESS_IO_READ@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CMD_ACCESS_IO_READ@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x0, sp, #8
	bl	_pcxhr_init_rmh
Lloh2:
	adrp	x8, _IO_NUM_REG_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IO_NUM_REG_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
Lloh5:
	adrp	x8, _REG_STATUS_OPTIONS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_STATUS_OPTIONS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x9, #4]
	mov	w8, #2
	str	w8, [sp, #16]
	add	x1, sp, #8
	mov	x0, x19
	bl	_pcxhr_send_msg
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	x8, [sp, #24]
	ldr	w8, [x8, #4]
Lloh8:
	adrp	x9, _REG_STATUS_OPT_DAUGHTER_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _REG_STATUS_OPT_DAUGHTER_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh11:
	adrp	x9, _REG_STATUS_OPT_ANALOG_BOARD@GOTPAGE
Lloh12:
	ldr	x9, [x9, _REG_STATUS_OPT_ANALOG_BOARD@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x19]
LBB0_3:
Lloh14:
	adrp	x8, _REG_CONT_UNMUTE_INPUTS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REG_CONT_UNMUTE_INPUTS@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x1
	mov	x3, #0
	bl	_pcxhr_write_io_num_reg_cont
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	w1, [x20]
	add	x0, sp, #8
	bl	_pcxhr_init_rmh
Lloh17:
	adrp	x8, _IO_NUM_REG_MUTE_OUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IO_NUM_REG_MUTE_OUT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	mov	x0, x19
	bl	_DSP_EXT_CMD_SET
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [sp, #8]
	mov	w9, #1
	str	w9, [x8, #4]
	mov	w8, #2
	str	w8, [sp, #16]
LBB0_6:
	add	x1, sp, #8
	mov	x0, x19
	bl	_pcxhr_send_msg
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_ACCESS_IO_READ,4,2         ; @CMD_ACCESS_IO_READ
	.comm	_IO_NUM_REG_STATUS,4,2          ; @IO_NUM_REG_STATUS
	.comm	_REG_STATUS_OPTIONS,4,2         ; @REG_STATUS_OPTIONS
	.comm	_REG_STATUS_OPT_DAUGHTER_MASK,4,2 ; @REG_STATUS_OPT_DAUGHTER_MASK
	.comm	_REG_STATUS_OPT_ANALOG_BOARD,4,2 ; @REG_STATUS_OPT_ANALOG_BOARD
	.comm	_REG_CONT_UNMUTE_INPUTS,4,2     ; @REG_CONT_UNMUTE_INPUTS
	.comm	_IO_NUM_REG_MUTE_OUT,4,2        ; @IO_NUM_REG_MUTE_OUT
	.no_dead_strip	_pcxhr_sub_init
.subsections_via_symbols
