	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcxhr_reset_board              ## -- Begin function pcxhr_reset_board
	.p2align	4, 0x90
_pcxhr_reset_board:                     ## @pcxhr_reset_board
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movq	_PCXHR_FIRMWARE_DSP_MAIN_INDEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_3
## %bb.1:
	cmpl	$0, 4(%rbx)
	jne	LBB0_3
## %bb.2:
	movq	_CMD_ACCESS_IO_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %r14
	movq	%r14, %rdi
	callq	_pcxhr_init_rmh
	movq	_IO_NUM_REG_MUTE_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-24(%rbp), %rcx
	orl	%eax, (%rcx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_pcxhr_send_msg
	movq	_REG_CONT_UNMUTE_INPUTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_pcxhr_write_io_num_reg_cont
	movl	(%rbx), %eax
LBB0_3:
	movq	_PCXHR_FIRMWARE_DSP_EPRM_INDEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_pcxhr_reset_dsp
	movl	(%rbx), %eax
LBB0_5:
	movq	_PCXHR_FIRMWARE_XLX_COM_INDEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_pcxhr_reset_xilinx_com
	movl	$1, (%rbx)
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCXHR_FIRMWARE_DSP_MAIN_INDEX,4,2 ## @PCXHR_FIRMWARE_DSP_MAIN_INDEX
	.comm	_CMD_ACCESS_IO_WRITE,4,2        ## @CMD_ACCESS_IO_WRITE
	.comm	_IO_NUM_REG_MUTE_OUT,4,2        ## @IO_NUM_REG_MUTE_OUT
	.comm	_REG_CONT_UNMUTE_INPUTS,4,2     ## @REG_CONT_UNMUTE_INPUTS
	.comm	_PCXHR_FIRMWARE_DSP_EPRM_INDEX,4,2 ## @PCXHR_FIRMWARE_DSP_EPRM_INDEX
	.comm	_PCXHR_FIRMWARE_XLX_COM_INDEX,4,2 ## @PCXHR_FIRMWARE_XLX_COM_INDEX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcxhr_reset_board              ; -- Begin function pcxhr_reset_board
	.p2align	2
_pcxhr_reset_board:                     ; @pcxhr_reset_board
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _PCXHR_FIRMWARE_DSP_MAIN_INDEX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCXHR_FIRMWARE_DSP_MAIN_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsr	w9, w8, w9
	tbz	w9, #0, LBB0_3
; %bb.1:
	ldr	w9, [x19, #4]
	cbnz	w9, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _CMD_ACCESS_IO_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_ACCESS_IO_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_pcxhr_init_rmh
Lloh6:
	adrp	x8, _IO_NUM_REG_MUTE_OUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IO_NUM_REG_MUTE_OUT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	add	x1, sp, #8
	mov	x0, x19
	bl	_pcxhr_send_msg
Lloh9:
	adrp	x8, _REG_CONT_UNMUTE_INPUTS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_CONT_UNMUTE_INPUTS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	x3, #0
	bl	_pcxhr_write_io_num_reg_cont
	ldr	w8, [x19]
LBB0_3:
Lloh12:
	adrp	x9, _PCXHR_FIRMWARE_DSP_EPRM_INDEX@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PCXHR_FIRMWARE_DSP_EPRM_INDEX@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsr	w9, w8, w9
	tbz	w9, #0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_pcxhr_reset_dsp
	ldr	w8, [x19]
LBB0_5:
Lloh15:
	adrp	x9, _PCXHR_FIRMWARE_XLX_COM_INDEX@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PCXHR_FIRMWARE_XLX_COM_INDEX@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_pcxhr_reset_xilinx_com
	mov	w8, #1
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PCXHR_FIRMWARE_DSP_MAIN_INDEX,4,2 ; @PCXHR_FIRMWARE_DSP_MAIN_INDEX
	.comm	_CMD_ACCESS_IO_WRITE,4,2        ; @CMD_ACCESS_IO_WRITE
	.comm	_IO_NUM_REG_MUTE_OUT,4,2        ; @IO_NUM_REG_MUTE_OUT
	.comm	_REG_CONT_UNMUTE_INPUTS,4,2     ; @REG_CONT_UNMUTE_INPUTS
	.comm	_PCXHR_FIRMWARE_DSP_EPRM_INDEX,4,2 ; @PCXHR_FIRMWARE_DSP_EPRM_INDEX
	.comm	_PCXHR_FIRMWARE_XLX_COM_INDEX,4,2 ; @PCXHR_FIRMWARE_XLX_COM_INDEX
.subsections_via_symbols
