	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ice1712_ews88mt_output_sense_put
_snd_ice1712_ews88mt_output_sense_put:  ## @snd_ice1712_ews88mt_output_sense_put
	.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
	movq	%rsi, %r14
	callq	_snd_kcontrol_chip
	movq	%rax, %rbx
	movq	8(%rax), %r15
	movl	(%rax), %edi
	callq	_snd_i2c_lock
	movq	(%r15), %rax
	movq	_EWS_I2C_PCF2@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %edi
	leaq	-34(%rbp), %rsi
	movl	$1, %edx
	callq	_snd_i2c_readbytes
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.2:
	movb	-34(%rbp), %al
	movq	_ICE1712_EWS88MT_OUTPUT_SENSE@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	movl	%ecx, %edx
	notb	%dl
	andb	%al, %dl
	movq	(%r14), %rsi
	xorl	%edi, %edi
	cmpq	$0, (%rsi)
	cmovnel	%ecx, %edi
	orb	%dl, %dil
	movb	%dil, -33(%rbp)
	cmpb	%al, %dil
	je	LBB0_4
## %bb.3:
	movq	(%r15), %rax
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %edi
	leaq	-33(%rbp), %rsi
	movl	$1, %edx
	callq	_snd_i2c_sendbytes
	cmpl	$1, %eax
	jne	LBB0_1
LBB0_4:
	movl	(%rbx), %edi
	callq	_snd_i2c_unlock
	movb	-33(%rbp), %cl
	xorl	%eax, %eax
	cmpb	-34(%rbp), %cl
	setne	%al
	jmp	LBB0_5
LBB0_1:
	movl	(%rbx), %edi
	callq	_snd_i2c_unlock
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EWS_I2C_PCF2,8,3               ## @EWS_I2C_PCF2
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ICE1712_EWS88MT_OUTPUT_SENSE,1,0 ## @ICE1712_EWS88MT_OUTPUT_SENSE
	.no_dead_strip	_snd_ice1712_ews88mt_output_sense_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ice1712_ews88mt_output_sense_put
_snd_ice1712_ews88mt_output_sense_put:  ; @snd_ice1712_ews88mt_output_sense_put
	.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	x20, x1
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x21, [x0, #8]
	ldr	w0, [x0]
	bl	_snd_i2c_lock
	ldr	x8, [x21]
Lloh0:
	adrp	x22, _EWS_I2C_PCF2@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EWS_I2C_PCF2@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	w0, [x8, x9, lsl #2]
	add	x1, sp, #15
	mov	w2, #1
	bl	_snd_i2c_readbytes
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.1:
	ldrb	w8, [sp, #15]
Lloh2:
	adrp	x9, _ICE1712_EWS88MT_OUTPUT_SENSE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ICE1712_EWS88MT_OUTPUT_SENSE@GOTPAGEOFF]
	ldrb	w9, [x9]
	bic	w10, w8, w9
	ldr	x11, [x20]
	ldr	x11, [x11]
	cmp	x11, #0
	csel	w9, wzr, w9, eq
	orr	w9, w9, w10
	strb	w9, [sp, #14]
	cmp	w8, w9, uxtb
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x21]
	ldr	x9, [x22]
	ldr	w0, [x8, x9, lsl #2]
	add	x1, sp, #14
	mov	w2, #1
	bl	_snd_i2c_sendbytes
	cmp	w0, #1
	b.ne	LBB0_4
LBB0_3:
	ldr	w0, [x19]
	bl	_snd_i2c_unlock
	ldrb	w8, [sp, #14]
	ldrb	w9, [sp, #15]
	cmp	w8, w9
	cset	w0, ne
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
	bl	_snd_i2c_unlock
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EWS_I2C_PCF2,8,3               ; @EWS_I2C_PCF2
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ICE1712_EWS88MT_OUTPUT_SENSE,1,0 ; @ICE1712_EWS88MT_OUTPUT_SENSE
	.no_dead_strip	_snd_ice1712_ews88mt_output_sense_put
.subsections_via_symbols
