	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmx6fire_ak4524_lock
_dmx6fire_ak4524_lock:                  ## @dmx6fire_ak4524_lock
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %r12
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_snd_ice1712_save_gpio_status
	movl	$1, %ebx
	movl	%r14d, %ecx
	shll	%cl, %ebx
	movq	_ICE1712_6FIRE_AK4524_CS_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movb	%bl, 1(%r12)
	movb	%bl, (%r12)
	movq	_ICE1712_6FIRE_SERIAL_DATA@GOTPCREL(%rip), %rax
	movq	_ICE1712_6FIRE_SERIAL_CLOCK@GOTPCREL(%rip), %rcx
	orb	(%rax), %bl
	orb	(%rcx), %bl
	movq	_ICE1712_6FIRE_RW@GOTPCREL(%rip), %rax
	orb	(%rax), %bl
	movq	_ICE1712_IREG_GPIO_DIRECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	(%r15), %al
	orb	%bl, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_snd_ice1712_write
	movq	_ICE1712_IREG_GPIO_WRITE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notb	%bl
	movzbl	%bl, %edx
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_ice1712_write              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE1712_6FIRE_AK4524_CS_MASK,4,2 ## @ICE1712_6FIRE_AK4524_CS_MASK
	.comm	_ICE1712_6FIRE_SERIAL_DATA,1,0  ## @ICE1712_6FIRE_SERIAL_DATA
	.comm	_ICE1712_6FIRE_SERIAL_CLOCK,1,0 ## @ICE1712_6FIRE_SERIAL_CLOCK
	.comm	_ICE1712_6FIRE_RW,1,0           ## @ICE1712_6FIRE_RW
	.comm	_ICE1712_IREG_GPIO_DIRECTION,4,2 ## @ICE1712_IREG_GPIO_DIRECTION
	.comm	_ICE1712_IREG_GPIO_WRITE_MASK,4,2 ## @ICE1712_IREG_GPIO_WRITE_MASK
	.no_dead_strip	_dmx6fire_ak4524_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmx6fire_ak4524_lock
_dmx6fire_ak4524_lock:                  ; @dmx6fire_ak4524_lock
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	ldp	x9, x8, [x0]
	ldr	x21, [x8]
	ldr	x20, [x9]
	mov	x0, x20
	bl	_snd_ice1712_save_gpio_status
	mov	w8, #1
	lsl	w8, w8, w19
Lloh0:
	adrp	x9, _ICE1712_6FIRE_AK4524_CS_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ICE1712_6FIRE_AK4524_CS_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	strb	w8, [x21, #1]
	strb	w8, [x21]
Lloh3:
	adrp	x9, _ICE1712_6FIRE_SERIAL_DATA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ICE1712_6FIRE_SERIAL_DATA@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh5:
	adrp	x10, _ICE1712_6FIRE_SERIAL_CLOCK@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ICE1712_6FIRE_SERIAL_CLOCK@GOTPAGEOFF]
	ldrb	w10, [x10]
Lloh7:
	adrp	x11, _ICE1712_6FIRE_RW@GOTPAGE
Lloh8:
	ldr	x11, [x11, _ICE1712_6FIRE_RW@GOTPAGEOFF]
	ldrb	w11, [x11]
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w19, w8, w11
Lloh9:
	adrp	x8, _ICE1712_IREG_GPIO_DIRECTION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICE1712_IREG_GPIO_DIRECTION@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldrb	w8, [x20]
	orr	w8, w8, w19
	and	w2, w8, #0xff
	mov	x0, x20
	bl	_snd_ice1712_write
Lloh12:
	adrp	x8, _ICE1712_IREG_GPIO_WRITE_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ICE1712_IREG_GPIO_WRITE_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mvn	w8, w19
	and	w2, w8, #0xff
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_snd_ice1712_write
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE1712_6FIRE_AK4524_CS_MASK,4,2 ; @ICE1712_6FIRE_AK4524_CS_MASK
	.comm	_ICE1712_6FIRE_SERIAL_DATA,1,0  ; @ICE1712_6FIRE_SERIAL_DATA
	.comm	_ICE1712_6FIRE_SERIAL_CLOCK,1,0 ; @ICE1712_6FIRE_SERIAL_CLOCK
	.comm	_ICE1712_6FIRE_RW,1,0           ; @ICE1712_6FIRE_RW
	.comm	_ICE1712_IREG_GPIO_DIRECTION,4,2 ; @ICE1712_IREG_GPIO_DIRECTION
	.comm	_ICE1712_IREG_GPIO_WRITE_MASK,4,2 ; @ICE1712_IREG_GPIO_WRITE_MASK
	.no_dead_strip	_dmx6fire_ak4524_lock
.subsections_via_symbols
