	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adp5520_led_setup
_adp5520_led_setup:                     ## @adp5520_led_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r14
	movl	(%rdi), %edx
	movl	4(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	cmpl	$130, %eax
	jne	LBB0_8
## %bb.3:
	movq	_ADP5520_LED_TIME@GOTPCREL(%rip), %rax
	movq	_ADP5520_FLAG_OFFT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movl	(%rax), %esi
	movq	_ADP5520_FLAG_OFFT_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movq	%r14, %rdi
	callq	_adp5520_set_bits
	movl	%eax, %ebx
	movq	_ADP5520_LED_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ADP5520_LED1_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_adp5520_set_bits
	movl	%eax, %r15d
	jmp	LBB0_7
LBB0_5:
	movq	_ADP5520_LED_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ADP5520_FLAG_OFFT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	movq	_ADP5520_FLAG_OFFT_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	shll	$4, %edx
	movq	%r14, %rdi
	callq	_adp5520_set_bits
	movl	%eax, %ebx
	movq	_ADP5520_LED_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_ADP5520_C3_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_adp5520_clr_bits
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movl	(%r12), %esi
	movq	_ADP5520_LED3_EN@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_ADP5520_LED_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ADP5520_FLAG_OFFT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	movq	_ADP5520_FLAG_OFFT_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	shll	$2, %edx
	movq	%r14, %rdi
	callq	_adp5520_set_bits
	movl	%eax, %ebx
	movq	_ADP5520_LED_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_ADP5520_R3_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_adp5520_clr_bits
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movl	(%r12), %esi
	movq	_ADP5520_LED2_EN@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_adp5520_set_bits
	movl	%eax, %ebx
LBB0_7:
	orl	%r15d, %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADP5520_LED_TIME,4,2           ## @ADP5520_LED_TIME
	.comm	_ADP5520_FLAG_OFFT_SHIFT,4,2    ## @ADP5520_FLAG_OFFT_SHIFT
	.comm	_ADP5520_FLAG_OFFT_MASK,4,2     ## @ADP5520_FLAG_OFFT_MASK
	.comm	_ADP5520_LED_CONTROL,4,2        ## @ADP5520_LED_CONTROL
	.comm	_ADP5520_LED1_EN,4,2            ## @ADP5520_LED1_EN
	.comm	_ADP5520_R3_MODE,4,2            ## @ADP5520_R3_MODE
	.comm	_ADP5520_LED2_EN,4,2            ## @ADP5520_LED2_EN
	.comm	_ADP5520_C3_MODE,4,2            ## @ADP5520_C3_MODE
	.comm	_ADP5520_LED3_EN,4,2            ## @ADP5520_LED3_EN
	.no_dead_strip	_adp5520_led_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adp5520_led_setup
_adp5520_led_setup:                     ; @adp5520_led_setup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x19, [x0, #8]
	ldp	w8, w9, [x0]
	cmp	w9, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w9, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w9, #130
	b.ne	LBB0_8
; %bb.3:
Lloh0:
	adrp	x9, _ADP5520_LED_TIME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ADP5520_LED_TIME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x9, _ADP5520_FLAG_OFFT_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ADP5520_FLAG_OFFT_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh6:
	adrp	x9, _ADP5520_FLAG_OFFT_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ADP5520_FLAG_OFFT_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w2, w8, w9
	mov	x0, x19
	bl	_adp5520_set_bits
	mov	x21, x0
Lloh9:
	adrp	x8, _ADP5520_LED_CONTROL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ADP5520_LED_CONTROL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _ADP5520_LED1_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ADP5520_LED1_EN@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_adp5520_set_bits
	mov	x20, x0
	b	LBB0_7
LBB0_4:
Lloh15:
	adrp	x9, _ADP5520_LED_TIME@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ADP5520_LED_TIME@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x9]
Lloh18:
	adrp	x9, _ADP5520_FLAG_OFFT_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ADP5520_FLAG_OFFT_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh21:
	adrp	x9, _ADP5520_FLAG_OFFT_MASK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ADP5520_FLAG_OFFT_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	and	w8, w8, w9
	lsl	w2, w8, #4
	mov	x0, x19
	bl	_adp5520_set_bits
	mov	x20, x0
Lloh24:
	adrp	x21, _ADP5520_LED_CONTROL@GOTPAGE
Lloh25:
	ldr	x21, [x21, _ADP5520_LED_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh26:
	adrp	x8, _ADP5520_C3_MODE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ADP5520_C3_MODE@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_adp5520_clr_bits
	orr	w20, w0, w20
	ldr	w1, [x21]
Lloh29:
	adrp	x8, _ADP5520_LED3_EN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ADP5520_LED3_EN@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh31:
	adrp	x9, _ADP5520_LED_TIME@GOTPAGE
Lloh32:
	ldr	x9, [x9, _ADP5520_LED_TIME@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x9]
Lloh34:
	adrp	x9, _ADP5520_FLAG_OFFT_SHIFT@GOTPAGE
Lloh35:
	ldr	x9, [x9, _ADP5520_FLAG_OFFT_SHIFT@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh37:
	adrp	x9, _ADP5520_FLAG_OFFT_MASK@GOTPAGE
Lloh38:
	ldr	x9, [x9, _ADP5520_FLAG_OFFT_MASK@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	and	w8, w8, w9
	lsl	w2, w8, #2
	mov	x0, x19
	bl	_adp5520_set_bits
	mov	x20, x0
Lloh40:
	adrp	x21, _ADP5520_LED_CONTROL@GOTPAGE
Lloh41:
	ldr	x21, [x21, _ADP5520_LED_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh42:
	adrp	x8, _ADP5520_R3_MODE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ADP5520_R3_MODE@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_adp5520_clr_bits
	orr	w20, w0, w20
	ldr	w1, [x21]
Lloh45:
	adrp	x8, _ADP5520_LED2_EN@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ADP5520_LED2_EN@GOTPAGEOFF]
LBB0_6:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_adp5520_set_bits
	mov	x21, x0
LBB0_7:
	orr	w0, w20, w21
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_ADP5520_LED_TIME,4,2           ; @ADP5520_LED_TIME
	.comm	_ADP5520_FLAG_OFFT_SHIFT,4,2    ; @ADP5520_FLAG_OFFT_SHIFT
	.comm	_ADP5520_FLAG_OFFT_MASK,4,2     ; @ADP5520_FLAG_OFFT_MASK
	.comm	_ADP5520_LED_CONTROL,4,2        ; @ADP5520_LED_CONTROL
	.comm	_ADP5520_LED1_EN,4,2            ; @ADP5520_LED1_EN
	.comm	_ADP5520_R3_MODE,4,2            ; @ADP5520_R3_MODE
	.comm	_ADP5520_LED2_EN,4,2            ; @ADP5520_LED2_EN
	.comm	_ADP5520_C3_MODE,4,2            ; @ADP5520_C3_MODE
	.comm	_ADP5520_LED3_EN,4,2            ; @ADP5520_LED3_EN
	.no_dead_strip	_adp5520_led_setup
.subsections_via_symbols
