	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ice1712_6fire_write_pca
_snd_ice1712_6fire_write_pca:           ## @snd_ice1712_6fire_write_pca
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movl	(%rdi), %edi
	callq	_snd_i2c_lock
	movb	%r15b, -34(%rbp)
	movb	%r14b, -33(%rbp)
	movq	(%r12), %rax
	movq	_EWS_I2C_6FIRE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	leaq	-34(%rbp), %rsi
	movl	$2, %edx
	callq	_snd_i2c_sendbytes
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_snd_i2c_unlock
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	xorl	%ecx, %ecx
	cmpl	$2, %r14d
	cmovel	%ecx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EWS_I2C_6FIRE,8,3              ## @EWS_I2C_6FIRE
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_snd_ice1712_6fire_write_pca
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ice1712_6fire_write_pca
_snd_ice1712_6fire_write_pca:           ; @snd_ice1712_6fire_write_pca
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0, #8]
	ldr	w0, [x0]
	bl	_snd_i2c_lock
	strb	w20, [sp, #14]
	strb	w19, [sp, #15]
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _EWS_I2C_6FIRE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EWS_I2C_6FIRE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	add	x1, sp, #14
	mov	w2, #2
	bl	_snd_i2c_sendbytes
	mov	x19, x0
	ldr	w0, [x21]
	bl	_snd_i2c_unlock
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w19, #2
	csneg	w0, wzr, w8, eq
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EWS_I2C_6FIRE,8,3              ; @EWS_I2C_6FIRE
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_snd_ice1712_6fire_write_pca
.subsections_via_symbols
