	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max44009_read_lux_raw
_max44009_read_lux_raw:                 ## @max44009_read_lux_raw
	.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
	subq	$120, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_MAX44009_REG_LUX_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -128(%rbp)
	movq	_MAX44009_REG_LUX_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -124(%rbp)
	movl	$0, -120(%rbp)
	movl	$0, -116(%rbp)
	movl	$4, -112(%rbp)
	leaq	-128(%rbp), %rax
	movq	%rax, -104(%rbp)
	movl	$0, -96(%rbp)
	movq	(%rdi), %rax
	movl	4(%rax), %ecx
	movl	%ecx, -92(%rbp)
	movl	$4, -88(%rbp)
	leaq	-116(%rbp), %rdx
	movq	%rdx, -80(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -72(%rbp)
	movl	%ecx, -68(%rbp)
	movl	$4, -64(%rbp)
	leaq	-124(%rbp), %rsi
	movq	%rsi, -56(%rbp)
	movl	$0, -48(%rbp)
	movl	%ecx, -44(%rbp)
	movl	$4, -40(%rbp)
	leaq	-120(%rbp), %rsi
	movq	%rsi, -32(%rbp)
	movl	%edx, -24(%rbp)
	movl	%ecx, -20(%rbp)
	movl	(%rax), %edi
	movq	_MAX44009_READ_LUX_XFER_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-112(%rbp), %rsi
	callq	_i2c_transfer
	cmpl	(%rbx), %eax
	jne	LBB0_1
## %bb.2:
	movl	-116(%rbp), %edi
	movl	-120(%rbp), %esi
	callq	_max44009_lux_raw
	jmp	LBB0_3
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$120, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX44009_REG_LUX_HI,4,2        ## @MAX44009_REG_LUX_HI
	.comm	_MAX44009_REG_LUX_LO,4,2        ## @MAX44009_REG_LUX_LO
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_MAX44009_READ_LUX_XFER_LEN,4,2 ## @MAX44009_READ_LUX_XFER_LEN
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_max44009_read_lux_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max44009_read_lux_raw
_max44009_read_lux_raw:                 ; @max44009_read_lux_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _MAX44009_REG_LUX_HI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX44009_REG_LUX_HI@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #20]
Lloh6:
	adrp	x8, _MAX44009_REG_LUX_LO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX44009_REG_LUX_LO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	str	xzr, [sp, #8]
	mov	w8, #4
	str	w8, [sp, #24]
	add	x9, sp, #20
	str	x9, [sp, #32]
	str	wzr, [sp, #40]
	ldr	x9, [x0]
	ldr	w10, [x9, #4]
	stp	w10, w8, [sp, #44]
	add	x11, sp, #8
Lloh9:
	adrp	x12, _I2C_M_RD@GOTPAGE
Lloh10:
	ldr	x12, [x12, _I2C_M_RD@GOTPAGEOFF]
	str	x11, [sp, #56]
Lloh11:
	ldr	w11, [x12]
	stp	w11, w10, [sp, #64]
	str	w8, [sp, #72]
	add	x12, sp, #16
	str	x12, [sp, #80]
	stp	wzr, w10, [sp, #88]
	str	w8, [sp, #96]
	add	x8, sp, #12
	str	x8, [sp, #104]
	stp	w11, w10, [sp, #112]
	ldr	w0, [x9]
Lloh12:
	adrp	x19, _MAX44009_READ_LUX_XFER_LEN@GOTPAGE
Lloh13:
	ldr	x19, [x19, _MAX44009_READ_LUX_XFER_LEN@GOTPAGEOFF]
	ldr	w2, [x19]
	add	x1, sp, #24
	bl	_i2c_transfer
	ldr	w8, [x19]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldp	w0, w1, [sp, #8]
	bl	_max44009_lux_raw
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldur	x8, [x29, #-24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX44009_REG_LUX_HI,4,2        ; @MAX44009_REG_LUX_HI
	.comm	_MAX44009_REG_LUX_LO,4,2        ; @MAX44009_REG_LUX_LO
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_MAX44009_READ_LUX_XFER_LEN,4,2 ; @MAX44009_READ_LUX_XFER_LEN
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_max44009_read_lux_raw
.subsections_via_symbols
