	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ice1712_cs8427_set_input_clock
_snd_ice1712_cs8427_set_input_clock:    ## @snd_ice1712_cs8427_set_input_clock
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movw	$132, -26(%rbp)
	movl	(%rdi), %edi
	callq	_snd_i2c_lock
	movl	4(%r15), %edi
	leaq	-26(%rbp), %rsi
	movl	$1, %edx
	callq	_snd_i2c_sendbytes
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.2:
	movl	4(%r15), %edi
	leaq	-27(%rbp), %rsi
	movl	$1, %edx
	callq	_snd_i2c_readbytes
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.3:
	movb	-27(%rbp), %cl
	movl	%ecx, %edx
	andb	$-16, %dl
	xorl	%eax, %eax
	testl	%r14d, %r14d
	sete	%al
	leal	(%rax,%rax,2), %eax
	incl	%eax
	orb	%dl, %al
	xorl	%ebx, %ebx
	cmpb	%al, %cl
	je	LBB0_6
## %bb.4:
	movb	%al, -25(%rbp)
	movl	4(%r15), %edi
	leaq	-26(%rbp), %rsi
	movl	$2, %edx
	callq	_snd_i2c_sendbytes
	movl	$1, %ebx
	cmpl	$2, %eax
	je	LBB0_6
## %bb.5:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	(%r15), %edi
	callq	_snd_i2c_unlock
	jmp	LBB0_7
LBB0_1:
	movl	(%r15), %edi
	callq	_snd_i2c_unlock
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_snd_ice1712_cs8427_set_input_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ice1712_cs8427_set_input_clock
_snd_ice1712_cs8427_set_input_clock:    ; @snd_ice1712_cs8427_set_input_clock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	mov	w8, #132
	strh	w8, [sp, #14]
	ldr	w0, [x0]
	bl	_snd_i2c_lock
	ldr	w0, [x19, #4]
	add	x1, sp, #14
	mov	w2, #1
	bl	_snd_i2c_sendbytes
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.1:
	ldr	w0, [x19, #4]
	add	x1, sp, #13
	mov	w2, #1
	bl	_snd_i2c_readbytes
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.2:
	ldrb	w9, [sp, #13]
	and	w8, w9, #0xf0
	cmp	w20, #0
	mov	w10, #4
	csinc	w10, w10, wzr, eq
	orr	w8, w8, w10
	cmp	w9, w8
	b.ne	LBB0_5
; %bb.3:
	mov	w20, #0
	b	LBB0_8
LBB0_4:
	ldr	w0, [x19]
	bl	_snd_i2c_unlock
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_5:
	strb	w8, [sp, #15]
	ldr	w0, [x19, #4]
	add	x1, sp, #14
	mov	w2, #2
	bl	_snd_i2c_sendbytes
	cmp	w0, #2
	b.ne	LBB0_7
; %bb.6:
	mov	w20, #1
	b	LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	ldr	w0, [x19]
	bl	_snd_i2c_unlock
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_snd_ice1712_cs8427_set_input_clock
.subsections_via_symbols
