	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __snd_gf1_write_addr
___snd_gf1_write_addr:                  ## @__snd_gf1_write_addr
	.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
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r14
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movl	%r12d, %eax
	shrl	%eax
	andl	$-16, %eax
	movl	%r12d, %edx
	andl	$15, %edx
	orl	%eax, %edx
	testl	%ecx, %ecx
	cmovnel	%edx, %r12d
	movq	_SNDRV_GF1_VB_UPPER_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	shrl	$26, %edx
	andl	$3, %edx
	movq	%r14, %rdi
	callq	___snd_gf1_write8
	jmp	LBB0_4
LBB0_2:
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.3:
	movl	%r12d, %eax
	andl	$12582927, %eax                 ## imm = 0xC0000F
	shrl	%r12d
	andl	$2097144, %r12d                 ## imm = 0x1FFFF8
	orl	%eax, %r12d
LBB0_4:
	movl	%r12d, %eax
	shrl	$11, %eax
	movzbl	%r15b, %ebx
	movzwl	%ax, %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	___snd_gf1_write16
	incb	%bl
	shll	$5, %r12d
	movzbl	%bl, %esi
	movzwl	%r12w, %edx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___snd_gf1_write16              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_GF1_VB_UPPER_ADDRESS,4,2 ## @SNDRV_GF1_VB_UPPER_ADDRESS
	.no_dead_strip	___snd_gf1_write_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __snd_gf1_write_addr
___snd_gf1_write_addr:                  ; @__snd_gf1_write_addr
	.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
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	lsr	w8, w2, #1
	and	w8, w8, #0x7ffffff0
	bfxil	w8, w2, #0, #4
	cmp	w3, #0
	csel	w21, w2, w8, eq
Lloh0:
	adrp	x8, _SNDRV_GF1_VB_UPPER_ADDRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_GF1_VB_UPPER_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ubfx	w2, w21, #26, #2
	mov	x0, x19
	bl	___snd_gf1_write8
	b	LBB0_3
LBB0_2:
	and	w8, w2, #0xffffff
	and	w8, w8, #0xffc0000f
	lsr	w9, w2, #1
	and	w9, w9, #0x1ffff8
	orr	w8, w9, w8
	cmp	w3, #0
	csel	w21, w2, w8, eq
LBB0_3:
	ubfx	w2, w21, #11, #16
	mov	x0, x19
	mov	x1, x20
	bl	___snd_gf1_write16
	add	w8, w20, #1
	ubfiz	w2, w21, #5, #11
	and	w1, w8, #0xff
	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_gf1_write16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_GF1_VB_UPPER_ADDRESS,4,2 ; @SNDRV_GF1_VB_UPPER_ADDRESS
	.no_dead_strip	___snd_gf1_write_addr
.subsections_via_symbols
