	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max9877_set_osc_mode
_max9877_set_osc_mode:                  ## @max9877_set_osc_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rax
	movl	(%rax), %edx
	movq	_MAX9877_OSC_OFFSET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movq	_max9877_regs@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_MAX9877_OUTPUT_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movl	(%r8,%r9,4), %edi
	movq	_MAX9877_OSC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, %ecx
	andl	%edi, %ecx
	xorl	%eax, %eax
	cmpl	%edx, %ecx
	je	LBB0_2
## %bb.1:
	notl	%esi
	andl	%esi, %edi
	orl	%edx, %edi
	movl	%edi, (%r8,%r9,4)
	xorl	%eax, %eax
	callq	_max9877_write_regs
	movl	$1, %eax
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX9877_OSC_OFFSET,4,2         ## @MAX9877_OSC_OFFSET
	.comm	_max9877_regs,8,3               ## @max9877_regs
	.comm	_MAX9877_OUTPUT_MODE,8,3        ## @MAX9877_OUTPUT_MODE
	.comm	_MAX9877_OSC_MASK,4,2           ## @MAX9877_OSC_MASK
	.no_dead_strip	_max9877_set_osc_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max9877_set_osc_mode
_max9877_set_osc_mode:                  ; @max9877_set_osc_mode
	.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	x8, [x1]
	ldr	w10, [x8]
Lloh0:
	adrp	x8, _MAX9877_OSC_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX9877_OSC_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x8]
Lloh3:
	adrp	x8, _max9877_regs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _max9877_regs@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _MAX9877_OUTPUT_MODE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX9877_OUTPUT_MODE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w11, [x8, x9, lsl #2]
	lsl	w10, w10, w12
Lloh9:
	adrp	x12, _MAX9877_OSC_MASK@GOTPAGE
Lloh10:
	ldr	x12, [x12, _MAX9877_OSC_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	and	w13, w12, w11
	cmp	w13, w10
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	bic	w11, w11, w12
	orr	w10, w11, w10
	str	w10, [x8, x9, lsl #2]
	bl	_max9877_write_regs
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX9877_OSC_OFFSET,4,2         ; @MAX9877_OSC_OFFSET
	.comm	_max9877_regs,8,3               ; @max9877_regs
	.comm	_MAX9877_OUTPUT_MODE,8,3        ; @MAX9877_OUTPUT_MODE
	.comm	_MAX9877_OSC_MASK,4,2           ; @MAX9877_OSC_MASK
	.no_dead_strip	_max9877_set_osc_mode
.subsections_via_symbols
