	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max30102_led_init
_max30102_led_init:                     ## @max30102_led_init
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %r12
	movq	(%r12), %r15
	leaq	L_.str(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	movl	$7000, -36(%rbp)                ## imm = 0x1B58
	movl	$7000, %edi                     ## imm = 0x1B58
	jmp	LBB0_3
LBB0_1:
	movl	-36(%rbp), %edi
LBB0_3:
	leaq	-40(%rbp), %rsi
	callq	_max30102_get_current_idx
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %ebx
	movl	-36(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
LBB0_5:
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_20
LBB0_6:
	movl	8(%r14), %edi
	movq	_MAX30102_REG_RED_LED_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-40(%rbp), %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
LBB0_20:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r14), %rax
	movq	_max30105@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	movl	$7000, -36(%rbp)                ## imm = 0x1B58
	movl	$7000, %edi                     ## imm = 0x1B58
	jmp	LBB0_11
LBB0_9:
	movl	-36(%rbp), %edi
LBB0_11:
	leaq	-40(%rbp), %rsi
	callq	_max30102_get_current_idx
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	movl	-36(%rbp), %edx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_5
LBB0_13:
	movl	8(%r14), %edi
	movq	_MAX30105_REG_GREEN_LED_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-40(%rbp), %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
LBB0_14:
	leaq	L_.str.6(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	movl	$7000, -36(%rbp)                ## imm = 0x1B58
	movl	$7000, %edi                     ## imm = 0x1B58
	jmp	LBB0_17
LBB0_15:
	movl	-36(%rbp), %edi
LBB0_17:
	leaq	-40(%rbp), %rsi
	callq	_max30102_get_current_idx
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	%eax, %ebx
	movl	-36(%rbp), %edx
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_5
LBB0_19:
	movl	8(%r14), %edi
	movq	_MAX30102_REG_IR_LED_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-40(%rbp), %edx
	callq	_regmap_write
	movl	%eax, %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"maxim,red-led-current-microamp"

L_.str.1:                               ## @.str.1
	.asciz	"no red-led-current-microamp set\n"

L_.str.2:                               ## @.str.2
	.asciz	"invalid RED LED current setting %d\n"

	.comm	_MAX30102_REG_RED_LED_CONFIG,4,2 ## @MAX30102_REG_RED_LED_CONFIG
	.comm	_max30105,8,3                   ## @max30105
L_.str.3:                               ## @.str.3
	.asciz	"maxim,green-led-current-microamp"

L_.str.4:                               ## @.str.4
	.asciz	"no green-led-current-microamp set\n"

L_.str.5:                               ## @.str.5
	.asciz	"invalid green LED current setting %d\n"

	.comm	_MAX30105_REG_GREEN_LED_CONFIG,4,2 ## @MAX30105_REG_GREEN_LED_CONFIG
L_.str.6:                               ## @.str.6
	.asciz	"maxim,ir-led-current-microamp"

L_.str.7:                               ## @.str.7
	.asciz	"no ir-led-current-microamp set\n"

L_.str.8:                               ## @.str.8
	.asciz	"invalid IR LED current setting %d\n"

	.comm	_MAX30102_REG_IR_LED_CONFIG,4,2 ## @MAX30102_REG_IR_LED_CONFIG
	.no_dead_strip	_max30102_led_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max30102_led_init
_max30102_led_init:                     ; @max30102_led_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	ldr	x19, [x0, #16]
	ldr	x21, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	bl	_of_property_read_u32
	cbz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #7000
	str	w0, [sp, #12]
	b	LBB0_3
LBB0_2:
	ldr	w0, [sp, #12]
LBB0_3:
	add	x1, sp, #8
	bl	_max30102_get_current_idx
	cbz	w0, LBB0_6
; %bb.4:
	mov	x22, x0
	ldr	w2, [sp, #12]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
LBB0_6:
	ldr	w0, [x20, #8]
Lloh6:
	adrp	x8, _MAX30102_REG_RED_LED_CONFIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX30102_REG_RED_LED_CONFIG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]
	bl	_regmap_write
	mov	x22, x0
	cbz	w0, LBB0_8
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _max30105@GOTPAGE
Lloh10:
	ldr	x9, [x9, _max30105@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.9:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	bl	_of_property_read_u32
	cbz	w0, LBB0_11
; %bb.10:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #7000
	str	w0, [sp, #12]
	b	LBB0_12
LBB0_11:
	ldr	w0, [sp, #12]
LBB0_12:
	add	x1, sp, #8
	bl	_max30102_get_current_idx
	cbz	w0, LBB0_14
; %bb.13:
	mov	x22, x0
	ldr	w2, [sp, #12]
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_5
LBB0_14:
	ldr	w0, [x20, #8]
Lloh18:
	adrp	x8, _MAX30105_REG_GREEN_LED_CONFIG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAX30105_REG_GREEN_LED_CONFIG@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]
	bl	_regmap_write
	mov	x22, x0
	cbnz	w0, LBB0_7
LBB0_15:
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	bl	_of_property_read_u32
	cbz	w0, LBB0_17
; %bb.16:
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #7000
	str	w0, [sp, #12]
	b	LBB0_18
LBB0_17:
	ldr	w0, [sp, #12]
LBB0_18:
	add	x1, sp, #8
	bl	_max30102_get_current_idx
	cbz	w0, LBB0_20
; %bb.19:
	mov	x22, x0
	ldr	w2, [sp, #12]
Lloh25:
	adrp	x1, l_.str.8@PAGE
Lloh26:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_5
LBB0_20:
	ldr	w0, [x20, #8]
Lloh27:
	adrp	x8, _MAX30102_REG_IR_LED_CONFIG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MAX30102_REG_IR_LED_CONFIG@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]
	bl	_regmap_write
	mov	x22, x0
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"maxim,red-led-current-microamp"

l_.str.1:                               ; @.str.1
	.asciz	"no red-led-current-microamp set\n"

l_.str.2:                               ; @.str.2
	.asciz	"invalid RED LED current setting %d\n"

	.comm	_MAX30102_REG_RED_LED_CONFIG,4,2 ; @MAX30102_REG_RED_LED_CONFIG
	.comm	_max30105,8,3                   ; @max30105
l_.str.3:                               ; @.str.3
	.asciz	"maxim,green-led-current-microamp"

l_.str.4:                               ; @.str.4
	.asciz	"no green-led-current-microamp set\n"

l_.str.5:                               ; @.str.5
	.asciz	"invalid green LED current setting %d\n"

	.comm	_MAX30105_REG_GREEN_LED_CONFIG,4,2 ; @MAX30105_REG_GREEN_LED_CONFIG
l_.str.6:                               ; @.str.6
	.asciz	"maxim,ir-led-current-microamp"

l_.str.7:                               ; @.str.7
	.asciz	"no ir-led-current-microamp set\n"

l_.str.8:                               ; @.str.8
	.asciz	"invalid IR LED current setting %d\n"

	.comm	_MAX30102_REG_IR_LED_CONFIG,4,2 ; @MAX30102_REG_IR_LED_CONFIG
	.no_dead_strip	_max30102_led_init
.subsections_via_symbols
