	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm4857_set_reg
_lm4857_set_reg:                        ## @lm4857_set_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movslq	(%rax), %r8
	movl	4(%rax), %ecx
	movl	8(%rax), %edi
	movq	_lm4857_regs@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movl	(%r9,%r8,4), %r10d
	movl	%r10d, %edx
	sarl	%cl, %edx
	andl	%edi, %edx
	movq	(%rsi), %rsi
	xorl	%eax, %eax
	cmpl	(%rsi), %edx
	je	LBB0_2
## %bb.1:
	shll	%cl, %edi
	notl	%edi
	andl	%edi, %r10d
	movl	%r10d, (%r9,%r8,4)
	movl	(%rsi), %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orl	%r10d, %eax
	movl	%eax, (%r9,%r8,4)
	xorl	%eax, %eax
	callq	_lm4857_write_regs
	movl	$1, %eax
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lm4857_regs,8,3                ## @lm4857_regs
	.no_dead_strip	_lm4857_set_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm4857_set_reg
_lm4857_set_reg:                        ; @lm4857_set_reg
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x12, [x0]
	ldp	w9, w8, [x12]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
Lloh0:
	adrp	x10, _lm4857_regs@GOTPAGE
Lloh1:
	ldr	x10, [x10, _lm4857_regs@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	ldr	w11, [x10, x9, lsl #2]
	ldr	w13, [x12, #8]
	asr	w12, w11, w8
	and	w14, w12, w13
	ldr	x12, [x1]
	ldr	w15, [x12]
	cmp	w14, w15
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	lsl	w13, w13, w8
	bic	w11, w11, w13
	lsl	x9, x9, #2
	str	w11, [x10, x9]
	ldr	w12, [x12]
	lsl	w8, w12, w8
	orr	w8, w8, w11
	str	w8, [x10, x9]
	bl	_lm4857_write_regs
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_lm4857_regs,8,3                ; @lm4857_regs
	.no_dead_strip	_lm4857_set_reg
.subsections_via_symbols
