	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ice1712_ews88mt_input_sense_put
_snd_ice1712_ews88mt_input_sense_put:   ## @snd_ice1712_ews88mt_input_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movq	8(%rax), %r12
	leaq	8(%r15), %rsi
	movq	%rbx, %rdi
	callq	_snd_ctl_get_ioffidx
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$8, %eax
	setae	%dil
	callq	_snd_BUG_ON
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_6
## %bb.1:
	movl	(%r14), %edi
	callq	_snd_i2c_lock
	movq	(%r12), %rax
	movq	_EWS_I2C_PCF1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	leaq	-42(%rbp), %rsi
	movl	$1, %r13d
	movl	$1, %edx
	callq	_snd_i2c_readbytes
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.3:
	movq	_EWS_I2C_PCF1@GOTPCREL(%rip), %rdi
	movl	%ebx, %ecx
	shll	%cl, %r13d
	movzbl	-42(%rbp), %eax
	movl	%eax, %ecx
	btrl	%ebx, %ecx
	movq	(%r15), %rdx
	xorl	%esi, %esi
	cmpq	$0, (%rdx)
	cmovel	%r13d, %esi
	orl	%ecx, %esi
	movb	%sil, -41(%rbp)
	cmpb	%sil, %al
	je	LBB0_5
## %bb.4:
	movq	(%r12), %rax
	movq	(%rdi), %rcx
	movl	(%rax,%rcx,4), %edi
	leaq	-41(%rbp), %rsi
	movl	$1, %edx
	callq	_snd_i2c_sendbytes
	cmpl	$1, %eax
	jne	LBB0_2
LBB0_5:
	movl	(%r14), %edi
	callq	_snd_i2c_unlock
	movb	-41(%rbp), %cl
	xorl	%eax, %eax
	cmpb	-42(%rbp), %cl
	setne	%al
	jmp	LBB0_6
LBB0_2:
	movl	(%r14), %edi
	callq	_snd_i2c_unlock
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EWS_I2C_PCF1,8,3               ## @EWS_I2C_PCF1
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_snd_ice1712_ews88mt_input_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_input_sense_put
_snd_ice1712_ews88mt_input_sense_put:   ; @snd_ice1712_ews88mt_input_sense_put
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x21, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x22, [x0, #8]
	add	x1, x20, #8
	mov	x0, x21
	bl	_snd_ctl_get_ioffidx
	mov	x21, x0
	cmp	w0, #7
	cset	w0, hi
	bl	_snd_BUG_ON
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_7
LBB0_2:
	ldr	w0, [x19]
	bl	_snd_i2c_lock
	ldr	x8, [x22]
Lloh0:
	adrp	x23, _EWS_I2C_PCF1@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EWS_I2C_PCF1@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	w0, [x8, x9, lsl #2]
	mov	w24, #1
	add	x1, sp, #15
	mov	w2, #1
	bl	_snd_i2c_readbytes
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.3:
	ldrb	w8, [sp, #15]
	lsl	w9, w24, w21
	bic	w10, w8, w9
	ldr	x11, [x20]
	ldr	x11, [x11]
	cmp	x11, #0
	csel	w9, w9, wzr, eq
	orr	w9, w9, w10
	strb	w9, [sp, #14]
	cmp	w8, w9, uxtb
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x22]
	ldr	x9, [x23]
	ldr	w0, [x8, x9, lsl #2]
	add	x1, sp, #14
	mov	w2, #1
	bl	_snd_i2c_sendbytes
	cmp	w0, #1
	b.ne	LBB0_6
LBB0_5:
	ldr	w0, [x19]
	bl	_snd_i2c_unlock
	ldrb	w8, [sp, #14]
	ldrb	w9, [sp, #15]
	cmp	w8, w9
	cset	w0, ne
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19]
	bl	_snd_i2c_unlock
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EWS_I2C_PCF1,8,3               ; @EWS_I2C_PCF1
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_snd_ice1712_ews88mt_input_sense_put
.subsections_via_symbols
