	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reg_write
_reg_write:                             ## @reg_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	16(%rdi), %edi
	callq	*24(%r15)
	movl	%ebx, %eax
	movq	_AK4114_REG_INT1_MASK@GOTPCREL(%rip), %rcx
	cmpb	%bl, (%rcx)
	jae	LBB0_1
## %bb.2:
	movq	_AK4114_REG_TXCSB0@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	cmpb	%bl, %cl
	ja	LBB0_6
## %bb.3:
	movq	_AK4114_REG_TXCSB4@GOTPCREL(%rip), %rdx
	cmpb	%bl, (%rdx)
	jb	LBB0_6
## %bb.4:
	subq	%rcx, %rax
	addq	8(%r15), %rax
	jmp	LBB0_5
LBB0_1:
	addq	(%r15), %rax
LBB0_5:
	movb	%r14b, (%rax)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AK4114_REG_INT1_MASK,1,0       ## @AK4114_REG_INT1_MASK
	.comm	_AK4114_REG_TXCSB0,1,0          ## @AK4114_REG_TXCSB0
	.comm	_AK4114_REG_TXCSB4,1,0          ## @AK4114_REG_TXCSB4
	.no_dead_strip	_reg_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reg_write
_reg_write:                             ; @reg_write
	.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, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #24]
	ldr	w0, [x0, #16]
	blr	x8
	mov	w8, w21
Lloh0:
	adrp	x9, _AK4114_REG_INT1_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AK4114_REG_INT1_MASK@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w9, w21
	b.hs	LBB0_3
; %bb.1:
Lloh2:
	adrp	x9, _AK4114_REG_TXCSB0@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AK4114_REG_TXCSB0@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh4:
	adrp	x10, _AK4114_REG_TXCSB4@GOTPAGE
Lloh5:
	ldr	x10, [x10, _AK4114_REG_TXCSB4@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	w9, w21
	ccmp	w10, w21, #0, ls
	b.lo	LBB0_5
; %bb.2:
	ldr	x10, [x20, #8]
	sub	x8, x8, x9
	add	x8, x10, x8
	b	LBB0_4
LBB0_3:
	ldr	x9, [x20]
	add	x8, x9, x8
LBB0_4:
	strb	w19, [x8]
LBB0_5:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_AK4114_REG_INT1_MASK,1,0       ; @AK4114_REG_INT1_MASK
	.comm	_AK4114_REG_TXCSB0,1,0          ; @AK4114_REG_TXCSB0
	.comm	_AK4114_REG_TXCSB4,1,0          ; @AK4114_REG_TXCSB4
	.no_dead_strip	_reg_write
.subsections_via_symbols
