	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcxhr_setup_firmware           ## -- Begin function pcxhr_setup_firmware
	.p2align	4, 0x90
_pcxhr_setup_firmware:                  ## @pcxhr_setup_firmware
	.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
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_PCXHR_HWDEP_ID@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	leaq	-24(%rbp), %rcx
	xorl	%edx, %edx
	callq	_snd_hwdep_new
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	_SNDRV_HWDEP_IFACE_PCXHR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-24(%rbp), %rcx
	movl	%eax, 32(%rcx)
	movq	%rbx, 24(%rcx)
	movq	_pcxhr_hwdep_dsp_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rcx)
	movq	_pcxhr_hwdep_dsp_load@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rcx)
	movl	$1, (%rcx)
	xorl	%eax, %eax
	cmpq	$0, 16(%rbx)
	setne	%al
	movl	%eax, 4(%rcx)
	movq	$0, 8(%rbx)
	movl	8(%rcx), %edi
	movq	(%r14), %rsi
	callq	_sprintf
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_snd_card_register
	movl	%eax, %ecx
	sarl	$31, %eax
	andl	%ecx, %eax
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCXHR_HWDEP_ID,8,3             ## @PCXHR_HWDEP_ID
	.comm	_SNDRV_HWDEP_IFACE_PCXHR,4,2    ## @SNDRV_HWDEP_IFACE_PCXHR
	.comm	_pcxhr_hwdep_dsp_status,4,2     ## @pcxhr_hwdep_dsp_status
	.comm	_pcxhr_hwdep_dsp_load,4,2       ## @pcxhr_hwdep_dsp_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcxhr_setup_firmware           ; -- Begin function pcxhr_setup_firmware
	.p2align	2
_pcxhr_setup_firmware:                  ; @pcxhr_setup_firmware
	.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	x8, [x0]
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh0:
	adrp	x20, _PCXHR_HWDEP_ID@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PCXHR_HWDEP_ID@GOTPAGEOFF]
	ldr	x1, [x20]
	add	x3, sp, #8
	mov	w2, #0
	bl	_snd_hwdep_new
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _SNDRV_HWDEP_IFACE_PCXHR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SNDRV_HWDEP_IFACE_PCXHR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	str	w8, [x9, #32]
	str	x19, [x9, #24]
Lloh5:
	adrp	x8, _pcxhr_hwdep_dsp_status@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pcxhr_hwdep_dsp_status@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x10, _pcxhr_hwdep_dsp_load@GOTPAGE
Lloh9:
	ldr	x10, [x10, _pcxhr_hwdep_dsp_load@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #12]
	mov	w8, #1
	ldr	x10, [x19, #16]
	cmp	x10, #0
	cset	w10, ne
	stp	w8, w10, [x9]
	str	xzr, [x19, #8]
	ldr	w0, [x9, #8]
	ldr	x1, [x20]
	bl	_sprintf
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_snd_card_register
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PCXHR_HWDEP_ID,8,3             ; @PCXHR_HWDEP_ID
	.comm	_SNDRV_HWDEP_IFACE_PCXHR,4,2    ; @SNDRV_HWDEP_IFACE_PCXHR
	.comm	_pcxhr_hwdep_dsp_status,4,2     ; @pcxhr_hwdep_dsp_status
	.comm	_pcxhr_hwdep_dsp_load,4,2       ; @pcxhr_hwdep_dsp_load
.subsections_via_symbols
