	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ymfpci_codec_read
_snd_ymfpci_codec_read:                 ## @snd_ymfpci_codec_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	(%rdi), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_snd_ymfpci_codec_ready
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	_YDSXGR_AC97CMDADR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_YDSXG_AC97READCMD@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_snd_ymfpci_writew
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_snd_ymfpci_codec_ready
	testq	%rax, %rax
	je	LBB0_2
LBB0_7:
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%r15), %rax
	movq	_PCI_DEVICE_ID_YAMAHA_744@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	cmpl	$1, 8(%r15)
	jg	LBB0_6
## %bb.4:
	movl	$600, %ebx                      ## imm = 0x258
	movq	_YDSXGR_PRISTATUSDATA@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_snd_ymfpci_readw
	decl	%ebx
	jne	LBB0_5
LBB0_6:
	movq	_YDSXGR_PRISTATUSDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_ymfpci_readw               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_YDSXGR_AC97CMDADR,4,2          ## @YDSXGR_AC97CMDADR
	.comm	_YDSXG_AC97READCMD,4,2          ## @YDSXG_AC97READCMD
	.comm	_PCI_DEVICE_ID_YAMAHA_744,8,3   ## @PCI_DEVICE_ID_YAMAHA_744
	.comm	_YDSXGR_PRISTATUSDATA,4,2       ## @YDSXGR_PRISTATUSDATA
	.no_dead_strip	_snd_ymfpci_codec_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ymfpci_codec_read
_snd_ymfpci_codec_read:                 ; @snd_ymfpci_codec_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	x20, x1
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #0
	bl	_snd_ymfpci_codec_ready
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _YDSXGR_AC97CMDADR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _YDSXGR_AC97CMDADR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _YDSXG_AC97READCMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _YDSXG_AC97READCMD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w2, w8, w20
	mov	x0, x19
	bl	_snd_ymfpci_writew
	mov	x0, x19
	mov	w1, #0
	bl	_snd_ymfpci_codec_ready
	cbz	x0, LBB0_3
LBB0_2:
	mov	w0, #-1
	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
LBB0_3:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _PCI_DEVICE_ID_YAMAHA_744@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PCI_DEVICE_ID_YAMAHA_744@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x20, _YDSXGR_PRISTATUSDATA@GOTPAGE
Lloh10:
	ldr	x20, [x20, _YDSXGR_PRISTATUSDATA@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.gt	LBB0_7
; %bb.5:
	mov	w21, #600
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_ymfpci_readw
	subs	w21, w21, #1
	b.ne	LBB0_6
LBB0_7:
	ldr	w1, [x20]
	mov	x0, x19
	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
	b	_snd_ymfpci_readw
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_YDSXGR_AC97CMDADR,4,2          ; @YDSXGR_AC97CMDADR
	.comm	_YDSXG_AC97READCMD,4,2          ; @YDSXG_AC97READCMD
	.comm	_PCI_DEVICE_ID_YAMAHA_744,8,3   ; @PCI_DEVICE_ID_YAMAHA_744
	.comm	_YDSXGR_PRISTATUSDATA,4,2       ; @YDSXGR_PRISTATUSDATA
	.no_dead_strip	_snd_ymfpci_codec_read
.subsections_via_symbols
