	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_gf1_pcm_poke_block
_snd_gf1_pcm_poke_block:                ## @snd_gf1_pcm_poke_block
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	je	LBB0_18
## %bb.1:
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	%r9d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
	cmpl	$512, %r15d                     ## imm = 0x200
	movl	%r15d, %eax
	movl	$512, %r15d                     ## imm = 0x200
	cmovbl	%eax, %r15d
	subl	%r15d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpq	$0, 8(%r13)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	_SNDRV_GF1_GB_MEMORY_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	testl	%r12d, %r12d
	setne	%al
	leal	1(,%rax,8), %edx
	movq	%r13, %rdi
	callq	_snd_gf1_write8
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_snd_gf1_dram_addr
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_SNDRV_GF1_GW_DRAM_IO16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_GF1REGSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_GUSP
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_outb
	movq	_GF1DATALOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_GUSP
	shrl	%r15d
	movl	%eax, %edi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_outsw
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	testl	%r12d, %r12d
	setne	%al
	movl	%eax, %r12d
	shll	$7, %r12d
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2, %r15d
	jb	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	shrl	%r15d
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, %r12d
	movzbl	(%rbx), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_snd_gf1_poke
	leal	2(%r12), %r14d
	movzbl	1(%rbx), %edx
	addq	$2, %rbx
	xorl	-48(%rbp), %edx                 ## 4-byte Folded Reload
	incl	%r12d
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_snd_gf1_poke
	decl	%r15d
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	testl	%r15d, %r15d
	jne	LBB0_14
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, %esi
	leal	1(%rsi), %r14d
	movzbl	(%rbx), %edx
	incq	%rbx
	xorl	%r12d, %edx
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_snd_gf1_poke
	decl	%r15d
	jne	LBB0_10
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_DRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_GUSP
	movl	%eax, %edi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_outsb
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	addq	$512, %rbx                      ## imm = 0x200
	addl	$512, %r14d                     ## imm = 0x200
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	testl	%r15d, %r15d
	je	LBB0_18
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_in_interrupt
	testl	%eax, %eax
	jne	LBB0_2
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	_schedule_timeout_interruptible
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	je	LBB0_2
## %bb.16:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_GF1_GB_MEMORY_CONTROL,4,2 ## @SNDRV_GF1_GB_MEMORY_CONTROL
	.comm	_SNDRV_GF1_GW_DRAM_IO16,4,2     ## @SNDRV_GF1_GW_DRAM_IO16
	.comm	_GF1REGSEL,4,2                  ## @GF1REGSEL
	.comm	_GF1DATALOW,4,2                 ## @GF1DATALOW
	.comm	_DRAM,4,2                       ## @DRAM
	.comm	_current,4,2                    ## @current
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_snd_gf1_pcm_poke_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_gf1_pcm_poke_block
_snd_gf1_pcm_poke_block:                ; @snd_gf1_pcm_poke_block
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	w3, LBB0_17
; %bb.1:
	mov	x21, x5
	mov	x19, x4
	mov	x20, x3
	mov	x24, x2
	mov	x27, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _current@GOTPAGE
Lloh1:
	ldr	x23, [x23, _current@GOTPAGEOFF]
	mov	w28, #512
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w20, #512
	csel	w25, w20, w28, lo
	sub	w20, w20, w25
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x8, _SNDRV_GF1_GB_MEMORY_CONTROL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SNDRV_GF1_GB_MEMORY_CONTROL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	cmp	w21, #0
	mov	w8, #9
	csinc	w2, w8, wzr, ne
	mov	x0, x22
	bl	_snd_gf1_write8
	mov	x0, x22
	mov	x1, x24
	bl	_snd_gf1_dram_addr
	cbz	w19, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh5:
	adrp	x8, _SNDRV_GF1_GW_DRAM_IO16@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SNDRV_GF1_GW_DRAM_IO16@GOTPAGEOFF]
Lloh7:
	ldr	w26, [x8]
Lloh8:
	adrp	x8, _GF1REGSEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GF1REGSEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_GUSP
	mov	x1, x0
	mov	x0, x26
	bl	_outb
Lloh11:
	adrp	x8, _GF1DATALOW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GF1DATALOW@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_GUSP
	lsr	w2, w25, #1
	mov	x1, x27
	bl	_outsw
	b	LBB0_12
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w21, #0
	cset	w8, ne
	lsl	w21, w8, #7
	cbz	w19, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w25, #2
	b.lo	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x28, x23
	lsr	w25, w25, #1
LBB0_8:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w25, w25, #1
	ldrb	w2, [x27]
	mov	x0, x22
	mov	x1, x24
	bl	_snd_gf1_poke
	add	w26, w24, #2
	add	x23, x27, #2
	ldrb	w8, [x27, #1]
	eor	w2, w21, w8
	add	w1, w24, #1
	mov	x0, x22
	bl	_snd_gf1_poke
	mov	x24, x26
	mov	x27, x23
	cbnz	w25, LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, x23
	mov	x24, x26
	mov	x23, x28
	mov	w28, #512
	b	LBB0_13
LBB0_10:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x1, x24
	sub	w25, w25, #1
	add	w24, w24, #1
	ldrb	w8, [x27], #1
	eor	w2, w21, w8
	mov	x0, x22
	bl	_snd_gf1_poke
	cbnz	w25, LBB0_10
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh14:
	adrp	x8, _DRAM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DRAM@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_GUSP
	mov	x1, x27
	mov	x2, x25
	bl	_outsb
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	add	x27, x27, #512
	add	w24, w24, #512
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w20, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	bl	_in_interrupt
	cbnz	w0, LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	bl	_schedule_timeout_interruptible
	ldr	w0, [x23]
	bl	_signal_pending
	cbz	x0, LBB0_2
; %bb.16:
Lloh17:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_GF1_GB_MEMORY_CONTROL,4,2 ; @SNDRV_GF1_GB_MEMORY_CONTROL
	.comm	_SNDRV_GF1_GW_DRAM_IO16,4,2     ; @SNDRV_GF1_GW_DRAM_IO16
	.comm	_GF1REGSEL,4,2                  ; @GF1REGSEL
	.comm	_GF1DATALOW,4,2                 ; @GF1DATALOW
	.comm	_DRAM,4,2                       ; @DRAM
	.comm	_current,4,2                    ; @current
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_snd_gf1_pcm_poke_block
.subsections_via_symbols
