	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max44000_read_led_current_raw
_max44000_read_led_current_raw:         ## @max44000_read_led_current_raw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	(%rdi), %edi
	movq	_MAX44000_REG_CFG_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-4(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	_MAX44000_LED_CURRENT_MASK@GOTPCREL(%rip), %rax
	movl	-4(%rbp), %ecx
	andl	(%rax), %ecx
	leal	-4(%rcx), %eax
	cmpl	$8, %ecx
	cmovbl	%ecx, %eax
LBB0_2:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX44000_REG_CFG_TX,4,2        ## @MAX44000_REG_CFG_TX
	.comm	_MAX44000_LED_CURRENT_MASK,4,2  ## @MAX44000_LED_CURRENT_MASK
	.no_dead_strip	_max44000_read_led_current_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max44000_read_led_current_raw
_max44000_read_led_current_raw:         ; @max44000_read_led_current_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _MAX44000_REG_CFG_TX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX44000_REG_CFG_TX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sub	x2, x29, #4
	bl	_regmap_read
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MAX44000_LED_CURRENT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX44000_LED_CURRENT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldur	w9, [x29, #-4]
	and	w8, w9, w8
	sub	w9, w8, #4
	cmp	w8, #7
	csel	w0, w9, w8, hi
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX44000_REG_CFG_TX,4,2        ; @MAX44000_REG_CFG_TX
	.comm	_MAX44000_LED_CURRENT_MASK,4,2  ; @MAX44000_LED_CURRENT_MASK
	.no_dead_strip	_max44000_read_led_current_raw
.subsections_via_symbols
