	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ice1712_ews88d_control_get
_snd_ice1712_ews88d_control_get:        ## @snd_ice1712_ews88d_control_get
	.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
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movq	8(%rax), %r12
	movl	(%rbx), %ebx
	movl	(%rax), %edi
	callq	_snd_i2c_lock
	movq	(%r12), %rax
	movq	_EWS_I2C_88D@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	leaq	-34(%rbp), %rsi
	movl	$2, %edx
	callq	_snd_i2c_readbytes
	movl	%eax, %r12d
	movl	(%r15), %edi
	callq	_snd_i2c_unlock
	cmpl	$2, %r12d
	jne	LBB0_1
## %bb.2:
	movl	%ebx, %eax
	shrl	$3, %eax
	andl	$31, %eax
	movzbl	-34(%rbp,%rax), %eax
	movl	%ebx, %ecx
	andb	$7, %cl
	shrl	%cl, %eax
	shrl	$8, %ebx
	xorl	%eax, %ebx
	andb	$1, %bl
	movq	(%r14), %rax
	movb	%bl, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EWS_I2C_88D,8,3                ## @EWS_I2C_88D
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_snd_ice1712_ews88d_control_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ice1712_ews88d_control_get
_snd_ice1712_ews88d_control_get:        ; @snd_ice1712_ews88d_control_get
	.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	x19, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x21, x0
	ldr	x23, [x0, #8]
	ldr	w22, [x20]
	ldr	w0, [x0]
	bl	_snd_i2c_lock
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _EWS_I2C_88D@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EWS_I2C_88D@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	add	x23, sp, #14
	add	x1, sp, #14
	mov	w2, #2
	bl	_snd_i2c_readbytes
	mov	x20, x0
	ldr	w0, [x21]
	bl	_snd_i2c_unlock
	cmp	w20, #2
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ubfx	x8, x22, #3, #5
	ldrb	w8, [x23, x8]
	and	w9, w22, #0x7
	lsr	w8, w8, w9
	eor	w8, w8, w22, lsr #8
	and	w8, w8, #0x1
	ldr	x9, [x19]
	strb	w8, [x9]
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EWS_I2C_88D,8,3                ; @EWS_I2C_88D
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_snd_ice1712_ews88d_control_get
.subsections_via_symbols
