	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsl2772_read_prox_led_current
_tsl2772_read_prox_led_current:         ## @tsl2772_read_prox_led_current
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-12(%rbp), %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	_tsl2772_led_currents@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movl	(%rcx), %esi
	movl	-12(%rbp), %edx
	testl	%esi, %esi
	je	LBB0_7
## %bb.2:
	cmpl	%esi, %edx
	je	LBB0_6
## %bb.3:
	addq	$8, %rax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rcx
	movl	(%rcx), %esi
	testl	%esi, %esi
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$8, %rax
	cmpl	%esi, %edx
	jne	LBB0_4
LBB0_6:
	movl	4(%rcx), %eax
	movl	%eax, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"led-max-microamp"

	.comm	_tsl2772_led_currents,8,3       ## @tsl2772_led_currents
L_.str.1:                               ## @.str.1
	.asciz	"Invalid value %d for led-max-microamp\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tsl2772_read_prox_led_current
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsl2772_read_prox_led_current
_tsl2772_read_prox_led_current:         ; @tsl2772_read_prox_led_current
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	tbnz	w0, #31, LBB0_8
; %bb.1:
Lloh2:
	adrp	x8, _tsl2772_led_currents@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tsl2772_led_currents@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x8]
	ldr	x8, [x9]
	ldr	w10, [x8]
	ldr	w2, [sp, #12]
	cbz	w10, LBB0_7
; %bb.2:
	cmp	w2, w10
	b.eq	LBB0_6
; %bb.3:
	add	x9, x9, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x9]
	ldr	w10, [x8]
	cbz	w10, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #8
	cmp	w2, w10
	b.ne	LBB0_4
LBB0_6:
	mov	w0, #0
	ldr	w8, [x8, #4]
	str	w8, [x19, #8]
	b	LBB0_8
LBB0_7:
	ldr	x0, [x19]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"led-max-microamp"

	.comm	_tsl2772_led_currents,8,3       ; @tsl2772_led_currents
l_.str.1:                               ; @.str.1
	.asciz	"Invalid value %d for led-max-microamp\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tsl2772_read_prox_led_current
.subsections_via_symbols
