	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max9877_set_reg
_max9877_set_reg:                       ## @max9877_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
	movl	(%rax), %r8d
	movl	4(%rax), %ecx
	movl	8(%rax), %edi
	movq	(%rsi), %rdx
	movl	(%rdx), %edx
	andl	%edi, %edx
	movl	%edi, %esi
	subl	%edx, %esi
	cmpl	$0, 12(%rax)
	cmovel	%edx, %esi
	movq	_max9877_regs@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movl	(%r9,%r8,4), %r10d
	movl	%r10d, %edx
	shrl	%cl, %edx
	andl	%edi, %edx
	xorl	%eax, %eax
	cmpl	%esi, %edx
	je	LBB0_2
## %bb.1:
	shll	%cl, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	notl	%edi
	andl	%edi, %r10d
	orl	%r10d, %esi
	movl	%esi, (%r9,%r8,4)
	xorl	%eax, %eax
	callq	_max9877_write_regs
	movl	$1, %eax
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_max9877_regs,8,3               ## @max9877_regs
	.no_dead_strip	_max9877_set_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max9877_set_reg
_max9877_set_reg:                       ; @max9877_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	x11, [x0]
	ldp	w8, w9, [x11]
	ldp	w10, w11, [x11, #8]
	ldr	x12, [x1]
	ldr	w12, [x12]
	and	w12, w12, w10
	sub	w13, w10, w12
	cmp	w11, #0
	csel	w11, w12, w13, eq
Lloh0:
	adrp	x12, _max9877_regs@GOTPAGE
Lloh1:
	ldr	x12, [x12, _max9877_regs@GOTPAGEOFF]
Lloh2:
	ldr	x12, [x12]
	ldr	w13, [x12, x8, lsl #2]
	lsr	w14, w13, w9
	and	w14, w14, w10
	cmp	w14, w11
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	lsl	w10, w10, w9
	bic	w10, w13, w10
	lsl	w9, w11, w9
	orr	w9, w9, w10
	str	w9, [x12, x8, lsl #2]
	bl	_max9877_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	_max9877_regs,8,3               ; @max9877_regs
	.no_dead_strip	_max9877_set_reg
.subsections_via_symbols
