	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_vt1724_write_i2c           ## -- Begin function snd_vt1724_write_i2c
	.p2align	4, 0x90
_snd_vt1724_write_i2c:                  ## @snd_vt1724_write_i2c
	.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	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_wait_i2c_busy
	movq	_I2C_BYTE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ICEREG1724
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_outb
	movq	_I2C_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ICEREG1724
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_outb
	movq	_VT1724_I2C_WRITE@GOTPCREL(%rip), %rax
	orb	(%rax), %r14b
	movq	_I2C_DEV_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ICEREG1724
	movzbl	%r14b, %edi
	movl	%eax, %esi
	callq	_outb
	movq	%rbx, %rdi
	callq	_wait_i2c_busy
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_BYTE_ADDR,4,2              ## @I2C_BYTE_ADDR
	.comm	_I2C_DATA,4,2                   ## @I2C_DATA
	.comm	_VT1724_I2C_WRITE,1,0           ## @VT1724_I2C_WRITE
	.comm	_I2C_DEV_ADDR,4,2               ## @I2C_DEV_ADDR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_vt1724_write_i2c           ; -- Begin function snd_vt1724_write_i2c
	.p2align	2
_snd_vt1724_write_i2c:                  ; @snd_vt1724_write_i2c
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_mutex_lock
	mov	x0, x22
	bl	_wait_i2c_busy
Lloh0:
	adrp	x8, _I2C_BYTE_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_BYTE_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_ICEREG1724
	mov	x1, x0
	mov	x0, x20
	bl	_outb
Lloh3:
	adrp	x8, _I2C_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_ICEREG1724
	mov	x1, x0
	mov	x0, x19
	bl	_outb
Lloh6:
	adrp	x8, _VT1724_I2C_WRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VT1724_I2C_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w19, w8, w21
Lloh8:
	adrp	x8, _I2C_DEV_ADDR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I2C_DEV_ADDR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_ICEREG1724
	mov	x1, x0
	mov	x0, x19
	bl	_outb
	mov	x0, x22
	bl	_wait_i2c_busy
	mov	x0, x22
	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	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_BYTE_ADDR,4,2              ; @I2C_BYTE_ADDR
	.comm	_I2C_DATA,4,2                   ; @I2C_DATA
	.comm	_VT1724_I2C_WRITE,1,0           ; @VT1724_I2C_WRITE
	.comm	_I2C_DEV_ADDR,4,2               ; @I2C_DEV_ADDR
.subsections_via_symbols
