	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ice1712_akm4xxx_write
_snd_ice1712_akm4xxx_write:             ## @snd_ice1712_akm4xxx_write
	.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
	movl	%ecx, %ebx
	movl	%edx, %r12d
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %r15
	movq	(%rax), %r14
	xorl	%edi, %edi
	cmpl	$4, %esi
	setae	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_1
## %bb.15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, %rdi
	callq	_snd_ice1712_gpio_read
	orl	(%r15), %eax
	movl	4(%r15), %r13d
	movl	8(%r15), %ecx
	notl	%r13d
	andl	%eax, %r13d
	movl	12(%r15), %eax
	cmpl	%eax, %ecx
	jne	LBB0_5
## %bb.2:
	cmpq	$0, 32(%r15)
	je	LBB0_4
## %bb.3:
	orl	%ecx, %r13d
	jmp	LBB0_7
LBB0_5:
	notl	%ecx
	andl	%ecx, %r13d
	orl	%eax, %r13d
	jmp	LBB0_6
LBB0_4:
	notl	%ecx
	andl	%ecx, %r13d
LBB0_6:
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	callq	_udelay
LBB0_7:
	movl	16(%r15), %eax
	andb	$31, %r12b
	movzbl	%r12b, %ecx
	shll	$14, %eax
	shll	$8, %ecx
	orl	%eax, %ecx
	movzbl	%bl, %eax
	addl	%ecx, %eax
	addl	$8192, %eax                     ## imm = 0x2000
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$15, %r12d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	20(%r15), %ebx
	notl	%ebx
	andl	%r13d, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	callq	_udelay
	movl	24(%r15), %r13d
	movl	%r13d, %eax
	orl	%ebx, %eax
	notl	%r13d
	andl	%ebx, %r13d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	btl	%r12d, %ecx
	cmovbl	%eax, %r13d
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	callq	_udelay
	orl	20(%r15), %r13d
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	callq	_udelay
	addl	$-1, %r12d
	jb	LBB0_8
## %bb.9:
	movl	8(%r15), %esi
	cmpl	12(%r15), %esi
	jne	LBB0_13
## %bb.10:
	cmpq	$0, 32(%r15)
	je	LBB0_12
## %bb.11:
	notl	%esi
	andl	%esi, %r13d
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	callq	_udelay
	movl	8(%r15), %esi
LBB0_12:
	orl	%r13d, %esi
	jmp	LBB0_14
LBB0_13:
	notl	%esi
	andl	%esi, %r13d
	orl	28(%r15), %r13d
	movl	%r13d, %esi
LBB0_14:
	movq	%r14, %rdi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_ice1712_akm4xxx_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ice1712_akm4xxx_write
_snd_ice1712_akm4xxx_write:             ; @snd_ice1712_akm4xxx_write
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	ldp	x9, x8, [x0]
	ldr	x23, [x8]
	ldr	x19, [x9]
	cmp	w1, #3
	cset	w0, hi
	bl	_snd_BUG_ON
	cbz	x0, LBB0_2
; %bb.1:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x19
	bl	_snd_ice1712_gpio_read
	ldp	w8, w9, [x23]
	orr	w8, w8, w0
	bic	w8, w8, w9
	ldp	w9, w10, [x23, #8]
	cmp	w9, w10
	b.ne	LBB0_5
; %bb.3:
	ldr	x10, [x23, #32]
	cbz	x10, LBB0_6
; %bb.4:
	orr	w20, w8, w9
	b	LBB0_8
LBB0_5:
	bic	w8, w8, w9
	orr	w20, w8, w10
	b	LBB0_7
LBB0_6:
	bic	w20, w8, w9
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	bl	_udelay
LBB0_8:
	ldr	w8, [x23, #16]
	and	w9, w22, #0x1f
	lsl	w9, w9, #8
	bfi	w9, w8, #14, #18
	orr	w8, w9, w21
	orr	w21, w8, #0x2000
	mov	w22, #15
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23, #20]
	bic	w20, w20, w8
	mov	x0, x19
	mov	x1, x20
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	bl	_udelay
	ldr	w8, [x23, #24]
	orr	w9, w8, w20
	bic	w8, w20, w8
	lsr	w10, w21, w22
	tst	w10, #0x1
	csel	w20, w8, w9, eq
	mov	x0, x19
	mov	x1, x20
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	bl	_udelay
	ldr	w8, [x23, #20]
	orr	w20, w8, w20
	mov	x0, x19
	mov	x1, x20
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	bl	_udelay
	sub	w22, w22, #1
	cmn	w22, #1
	b.ne	LBB0_9
; %bb.10:
	ldp	w8, w9, [x23, #8]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.11:
	ldr	x9, [x23, #32]
	cbz	x9, LBB0_13
; %bb.12:
	bic	w20, w20, w8
	mov	x0, x19
	mov	x1, x20
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	bl	_udelay
	ldr	w8, [x23, #8]
LBB0_13:
	orr	w1, w8, w20
	b	LBB0_15
LBB0_14:
	bic	w8, w20, w8
	ldr	w9, [x23, #28]
	orr	w1, w9, w8
LBB0_15:
	mov	x0, x19
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_udelay
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_ice1712_akm4xxx_write
.subsections_via_symbols
