	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dspio_read
_dspio_read:                            ## @dspio_read
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_VENDOR_DSPIO_SCP_POST_READ_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	callq	_dspio_send
	movl	%eax, %ebx
	movq	_EIO@GOTPCREL(%rip), %r13
	addl	(%r13), %eax
	je	LBB0_5
## %bb.1:
	movq	_VENDOR_DSPIO_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_dspio_send
	subl	(%r13), %r12d
	cmpl	%r12d, %eax
	je	LBB0_2
## %bb.3:
	movq	_VENDOR_STATUS_DSPIO_SCP_RESPONSE_QUEUE_EMPTY@GOTPCREL(%rip), %rcx
	movl	%r12d, %ebx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.4:
	movq	_WIDGET_DSP_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VENDOR_DSPIO_SCP_READ_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_snd_hda_codec_read
	movl	%eax, (%r14)
	jmp	LBB0_5
LBB0_2:
	movl	%r12d, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VENDOR_DSPIO_SCP_POST_READ_DATA,4,2 ## @VENDOR_DSPIO_SCP_POST_READ_DATA
	.comm	_EIO,4,2                        ## @EIO
	.comm	_VENDOR_DSPIO_STATUS,4,2        ## @VENDOR_DSPIO_STATUS
	.comm	_VENDOR_STATUS_DSPIO_SCP_RESPONSE_QUEUE_EMPTY,4,2 ## @VENDOR_STATUS_DSPIO_SCP_RESPONSE_QUEUE_EMPTY
	.comm	_WIDGET_DSP_CTRL,4,2            ## @WIDGET_DSP_CTRL
	.comm	_VENDOR_DSPIO_SCP_READ_DATA,4,2 ## @VENDOR_DSPIO_SCP_READ_DATA
	.no_dead_strip	_dspio_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dspio_read
_dspio_read:                            ; @dspio_read
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _VENDOR_DSPIO_SCP_POST_READ_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VENDOR_DSPIO_SCP_POST_READ_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_dspio_send
Lloh3:
	adrp	x21, _EIO@GOTPAGE
Lloh4:
	ldr	x21, [x21, _EIO@GOTPAGEOFF]
	ldr	w8, [x21]
	cmn	w0, w8
	b.eq	LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _VENDOR_DSPIO_STATUS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VENDOR_DSPIO_STATUS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_dspio_send
	ldr	w8, [x21]
Lloh8:
	adrp	x9, _VENDOR_STATUS_DSPIO_SCP_RESPONSE_QUEUE_EMPTY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VENDOR_STATUS_DSPIO_SCP_RESPONSE_QUEUE_EMPTY@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmn	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_3
; %bb.2:
	neg	w0, w8
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x8, _WIDGET_DSP_CTRL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WIDGET_DSP_CTRL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _VENDOR_DSPIO_SCP_READ_DATA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VENDOR_DSPIO_SCP_READ_DATA@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	w4, #0
	bl	_snd_hda_codec_read
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
LBB0_4:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_VENDOR_DSPIO_SCP_POST_READ_DATA,4,2 ; @VENDOR_DSPIO_SCP_POST_READ_DATA
	.comm	_EIO,4,2                        ; @EIO
	.comm	_VENDOR_DSPIO_STATUS,4,2        ; @VENDOR_DSPIO_STATUS
	.comm	_VENDOR_STATUS_DSPIO_SCP_RESPONSE_QUEUE_EMPTY,4,2 ; @VENDOR_STATUS_DSPIO_SCP_RESPONSE_QUEUE_EMPTY
	.comm	_WIDGET_DSP_CTRL,4,2            ; @WIDGET_DSP_CTRL
	.comm	_VENDOR_DSPIO_SCP_READ_DATA,4,2 ; @VENDOR_DSPIO_SCP_READ_DATA
	.no_dead_strip	_dspio_read
.subsections_via_symbols
