	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_gf1_start                  ## -- Begin function snd_gf1_start
	.p2align	4, 0x90
_snd_gf1_start:                         ## @snd_gf1_start
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_SNDRV_GF1_GB_RESET@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_snd_gf1_i_write8
	movl	$160, %edi
	callq	_udelay
	movl	(%r15), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_snd_gf1_i_write8
	movl	$160, %edi
	callq	_udelay
	movq	_SNDRV_GF1_GB_JOYSTICK_DAC_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%r12, %rdi
	callq	_snd_gf1_i_write8
	movq	_SNDRV_GF1_HANDLER_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_snd_gf1_set_default_handlers
	movq	_SNDRV_GF1_HANDLER_VOICE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	112(%r12), %rax
	movl	%ebx, (%rax,%rbx,4)
	movl	(%r14), %esi
	orl	%ebx, %esi
	movq	%r12, %rdi
	callq	_snd_gf1_set_default_handlers
	incq	%rbx
	cmpq	$32, %rbx
	jne	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	movl	$3, %esi
	callq	_snd_gf1_uart_cmd
	cmpq	$0, 104(%r12)
	je	LBB0_4
## %bb.3:
	movq	_SNDRV_GF1_GB_GLOBAL_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_snd_gf1_i_look8
	orl	$1, %eax
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_snd_gf1_i_write8
	movq	_SNDRV_GF1_GB_MEMORY_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_snd_gf1_i_write8
LBB0_4:
	movq	%r12, %rdi
	callq	_snd_gf1_clear_regs
	movq	%r12, %rdi
	callq	_snd_gf1_select_active_voices
	movq	%r12, %rdi
	callq	_snd_gf1_delay
	movq	80(%r12), %rax
	xorl	%ecx, %ecx
	testq	%rax, %rax
	movl	$504, %esi                      ## imm = 0x1F8
	cmovgl	%ecx, %esi
	movl	%esi, 72(%r12)
	cmpq	$0, 104(%r12)
	je	LBB0_7
## %bb.5:
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	$1, 88(%r12)
	orl	$1024, %esi                     ## imm = 0x400
	movl	%esi, 72(%r12)
	testq	%rax, %rax
	jg	LBB0_9
	jmp	LBB0_10
LBB0_7:
	movl	$1, 92(%r12)
	testq	%rax, %rax
	jle	LBB0_10
LBB0_9:
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_snd_gf1_poke
	movl	72(%r12), %esi
	incl	%esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_snd_gf1_poke
	movl	72(%r12), %esi
	addl	$2, %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_snd_gf1_poke
	movl	72(%r12), %esi
	addl	$3, %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_snd_gf1_poke
LBB0_10:
	movq	%r12, %rdi
	callq	_snd_gf1_clear_regs
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$31, %edx
	callq	_snd_gf1_clear_voices
	movq	%r12, %rdi
	callq	_snd_gf1_look_regs
	movl	$160, %edi
	callq	_udelay
	movl	(%r15), %esi
	movq	%r12, %rdi
	movl	$7, %edx
	callq	_snd_gf1_i_write8
	movl	$160, %edi
	callq	_udelay
	movl	(%r15), %esi
	movq	%r12, %rdi
	movl	$7, %edx
	callq	_snd_gf1_i_write8
	cmpq	$0, 104(%r12)
	je	LBB0_12
## %bb.11:
	movq	_SNDRV_GF1_GB_GLOBAL_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_snd_gf1_i_look8
	orl	$1, %eax
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_snd_gf1_i_write8
	movq	_SNDRV_GF1_GB_MEMORY_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_snd_gf1_i_write8
LBB0_12:
	movq	_SNDRV_GF1_GB_VOICES_IRQ@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_snd_gf1_i_read8
	notl	%eax
	testb	$-64, %al
	jne	LBB0_13
## %bb.14:
	leaq	56(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	$0, 96(%r12)
	movq	_GF1PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_GUSP
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_outb
	movq	64(%r12), %r15
	movq	_MIXCNTRLREG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_GUSP
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_outb
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r12, %rdi
	callq	_snd_gf1_timers_init
	movq	%r12, %rdi
	callq	_snd_gf1_look_regs
	movq	%r12, %rdi
	callq	_snd_gf1_mem_init
	movq	%r12, %rdi
	callq	_snd_gf1_mem_proc_init
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_GF1_GB_RESET,4,2         ## @SNDRV_GF1_GB_RESET
	.comm	_SNDRV_GF1_GB_JOYSTICK_DAC_LEVEL,4,2 ## @SNDRV_GF1_GB_JOYSTICK_DAC_LEVEL
	.comm	_SNDRV_GF1_HANDLER_ALL,4,2      ## @SNDRV_GF1_HANDLER_ALL
	.comm	_SNDRV_GF1_HANDLER_VOICE,4,2    ## @SNDRV_GF1_HANDLER_VOICE
	.comm	_SNDRV_GF1_GB_GLOBAL_MODE,4,2   ## @SNDRV_GF1_GB_GLOBAL_MODE
	.comm	_SNDRV_GF1_GB_MEMORY_CONTROL,4,2 ## @SNDRV_GF1_GB_MEMORY_CONTROL
	.comm	_SNDRV_GF1_GB_VOICES_IRQ,4,2    ## @SNDRV_GF1_GB_VOICES_IRQ
	.comm	_GF1PAGE,4,2                    ## @GF1PAGE
	.comm	_MIXCNTRLREG,4,2                ## @MIXCNTRLREG
	.comm	_SNDRV_GF1_GW_FIFO_PLAY_BASE_ADDR,4,2 ## @SNDRV_GF1_GW_FIFO_PLAY_BASE_ADDR
	.comm	_SNDRV_GF1_GW_FIFO_RECORD_BASE_ADDR,4,2 ## @SNDRV_GF1_GW_FIFO_RECORD_BASE_ADDR
	.comm	_SNDRV_GF1_GW_FIFO_SIZE,4,2     ## @SNDRV_GF1_GW_FIFO_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_gf1_start                  ; -- Begin function snd_gf1_start
	.p2align	2
_snd_gf1_start:                         ; @snd_gf1_start
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _SNDRV_GF1_GB_RESET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SNDRV_GF1_GB_RESET@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #0
	bl	_snd_gf1_i_write8
	mov	w0, #160
	bl	_udelay
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1
	bl	_snd_gf1_i_write8
	mov	w0, #160
	bl	_udelay
Lloh2:
	adrp	x8, _SNDRV_GF1_GB_JOYSTICK_DAC_LEVEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SNDRV_GF1_GB_JOYSTICK_DAC_LEVEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_snd_gf1_i_write8
Lloh5:
	adrp	x8, _SNDRV_GF1_HANDLER_ALL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SNDRV_GF1_HANDLER_ALL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_gf1_set_default_handlers
	mov	x20, #0
Lloh8:
	adrp	x22, _SNDRV_GF1_HANDLER_VOICE@GOTPAGE
Lloh9:
	ldr	x22, [x22, _SNDRV_GF1_HANDLER_VOICE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #112]
	str	w20, [x8, x20, lsl #2]
	ldr	w8, [x22]
	orr	w1, w8, w20
	mov	x0, x19
	bl	_snd_gf1_set_default_handlers
	add	x20, x20, #1
	cmp	x20, #32
	b.ne	LBB0_1
; %bb.2:
	mov	x0, x19
	mov	w1, #3
	bl	_snd_gf1_uart_cmd
	ldr	x8, [x19, #104]
Lloh10:
	adrp	x23, _SNDRV_GF1_GB_GLOBAL_MODE@GOTPAGE
Lloh11:
	ldr	x23, [x23, _SNDRV_GF1_GB_GLOBAL_MODE@GOTPAGEOFF]
Lloh12:
	adrp	x22, _SNDRV_GF1_GB_MEMORY_CONTROL@GOTPAGE
Lloh13:
	ldr	x22, [x22, _SNDRV_GF1_GB_MEMORY_CONTROL@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w20, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	_snd_gf1_i_look8
	orr	w2, w0, #0x1
	mov	x0, x19
	mov	x1, x20
	bl	_snd_gf1_i_write8
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_snd_gf1_i_write8
LBB0_4:
	mov	x0, x19
	bl	_snd_gf1_clear_regs
	mov	x0, x19
	bl	_snd_gf1_select_active_voices
	mov	x0, x19
	bl	_snd_gf1_delay
	ldr	x8, [x19, #80]
	cmp	x8, #0
	mov	w9, #504
	csel	w1, wzr, w9, gt
	str	w1, [x19, #72]
	ldr	x9, [x19, #104]
	cbz	x9, LBB0_7
; %bb.5:
	cbz	x8, LBB0_7
; %bb.6:
	mov	w9, #1
	str	w9, [x19, #88]
	orr	w1, w1, #0x400
	str	w1, [x19, #72]
	cmp	x8, #1
	b.ge	LBB0_8
	b	LBB0_9
LBB0_7:
	mov	w9, #1
	str	w9, [x19, #92]
	cmp	x8, #1
	b.lt	LBB0_9
LBB0_8:
	mov	x0, x19
	mov	w2, #0
	bl	_snd_gf1_poke
	ldr	w8, [x19, #72]
	add	w1, w8, #1
	mov	x0, x19
	mov	w2, #0
	bl	_snd_gf1_poke
	ldr	w8, [x19, #72]
	add	w1, w8, #2
	mov	x0, x19
	mov	w2, #0
	bl	_snd_gf1_poke
	ldr	w8, [x19, #72]
	add	w1, w8, #3
	mov	x0, x19
	mov	w2, #0
	bl	_snd_gf1_poke
LBB0_9:
	mov	x0, x19
	bl	_snd_gf1_clear_regs
	mov	x0, x19
	mov	w1, #0
	mov	w2, #31
	bl	_snd_gf1_clear_voices
	mov	x0, x19
	bl	_snd_gf1_look_regs
	mov	w0, #160
	bl	_udelay
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #7
	bl	_snd_gf1_i_write8
	mov	w0, #160
	bl	_udelay
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #7
	bl	_snd_gf1_i_write8
	ldr	x8, [x19, #104]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w20, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	_snd_gf1_i_look8
	orr	w2, w0, #0x1
	mov	x0, x19
	mov	x1, x20
	bl	_snd_gf1_i_write8
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_snd_gf1_i_write8
LBB0_11:
Lloh14:
	adrp	x20, _SNDRV_GF1_GB_VOICES_IRQ@GOTPAGE
Lloh15:
	ldr	x20, [x20, _SNDRV_GF1_GB_VOICES_IRQ@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_gf1_i_read8
	mvn	w8, w0
	tst	w8, #0xc0
	b.ne	LBB0_12
; %bb.13:
	add	x20, x19, #56
	mov	x0, x20
	bl	_spin_lock_irqsave
	str	xzr, [x19, #96]
Lloh16:
	adrp	x8, _GF1PAGE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GF1PAGE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GUSP
	mov	x1, x0
	mov	x0, #0
	bl	_outb
	ldr	x21, [x19, #64]
Lloh19:
	adrp	x8, _MIXCNTRLREG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MIXCNTRLREG@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GUSP
	mov	x1, x0
	mov	x0, x21
	bl	_outb
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_snd_gf1_timers_init
	mov	x0, x19
	bl	_snd_gf1_look_regs
	mov	x0, x19
	bl	_snd_gf1_mem_init
	mov	x0, x19
	bl	_snd_gf1_mem_proc_init
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_GF1_GB_RESET,4,2         ; @SNDRV_GF1_GB_RESET
	.comm	_SNDRV_GF1_GB_JOYSTICK_DAC_LEVEL,4,2 ; @SNDRV_GF1_GB_JOYSTICK_DAC_LEVEL
	.comm	_SNDRV_GF1_HANDLER_ALL,4,2      ; @SNDRV_GF1_HANDLER_ALL
	.comm	_SNDRV_GF1_HANDLER_VOICE,4,2    ; @SNDRV_GF1_HANDLER_VOICE
	.comm	_SNDRV_GF1_GB_GLOBAL_MODE,4,2   ; @SNDRV_GF1_GB_GLOBAL_MODE
	.comm	_SNDRV_GF1_GB_MEMORY_CONTROL,4,2 ; @SNDRV_GF1_GB_MEMORY_CONTROL
	.comm	_SNDRV_GF1_GB_VOICES_IRQ,4,2    ; @SNDRV_GF1_GB_VOICES_IRQ
	.comm	_GF1PAGE,4,2                    ; @GF1PAGE
	.comm	_MIXCNTRLREG,4,2                ; @MIXCNTRLREG
	.comm	_SNDRV_GF1_GW_FIFO_PLAY_BASE_ADDR,4,2 ; @SNDRV_GF1_GW_FIFO_PLAY_BASE_ADDR
	.comm	_SNDRV_GF1_GW_FIFO_RECORD_BASE_ADDR,4,2 ; @SNDRV_GF1_GW_FIFO_RECORD_BASE_ADDR
	.comm	_SNDRV_GF1_GW_FIFO_SIZE,4,2     ; @SNDRV_GF1_GW_FIFO_SIZE
.subsections_via_symbols
