	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max44000_write_led_current_raw
_max44000_write_led_current_raw:        ## @max44000_write_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
                                        ## kill: def $esi killed $esi def $rsi
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	movq	_MAX44000_LED_CURRENT_MAX@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jl	LBB0_2
## %bb.3:
	leal	4(%rsi), %ecx
	cmpl	$8, %esi
	cmovbl	%esi, %ecx
	movl	(%rdi), %edi
	movq	_MAX44000_REG_CFG_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX44000_LED_CURRENT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	popq	%rbp
	jmp	_regmap_write_bits              ## TAILCALL
LBB0_2:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX44000_LED_CURRENT_MAX,4,2   ## @MAX44000_LED_CURRENT_MAX
	.comm	_ERANGE,4,2                     ## @ERANGE
	.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_write_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_write_led_current_raw
_max44000_write_led_current_raw:        ; @max44000_write_led_current_raw
	.cfi_startproc
; %bb.0:
	tbnz	w1, #31, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _MAX44000_LED_CURRENT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX44000_LED_CURRENT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.lt	LBB0_3
; %bb.2:
	add	w8, w1, #4
	cmp	w1, #7
	csel	w3, w8, w1, hi
	ldr	w0, [x0]
Lloh3:
	adrp	x8, _MAX44000_REG_CFG_TX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX44000_REG_CFG_TX@GOTPAGEOFF]
Lloh5:
	adrp	x9, _MAX44000_LED_CURRENT_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAX44000_LED_CURRENT_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	w2, [x9]
	b	_regmap_write_bits
LBB0_3:
Lloh9:
	adrp	x8, _ERANGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX44000_LED_CURRENT_MAX,4,2   ; @MAX44000_LED_CURRENT_MAX
	.comm	_ERANGE,4,2                     ; @ERANGE
	.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_write_led_current_raw
.subsections_via_symbols
