	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_als_read_raw
_acpi_als_read_raw:                     ## @acpi_als_read_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	callq	_iio_priv
	movq	_IIO_CHAN_INFO_PROCESSED@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_IIO_CHAN_INFO_RAW@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jne	LBB0_2
LBB0_3:
	movq	(%r15), %rcx
	movq	_IIO_LIGHT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.4:
	movq	_ACPI_ALS_ILLUMINANCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-28(%rbp), %rdx
	movq	%rax, %rdi
	callq	_acpi_als_read_value
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movl	-28(%rbp), %eax
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_CHAN_INFO_PROCESSED,8,3    ## @IIO_CHAN_INFO_PROCESSED
	.comm	_IIO_CHAN_INFO_RAW,8,3          ## @IIO_CHAN_INFO_RAW
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_LIGHT,8,3                  ## @IIO_LIGHT
	.comm	_ACPI_ALS_ILLUMINANCE,4,2       ## @ACPI_ALS_ILLUMINANCE
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.no_dead_strip	_acpi_als_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_als_read_raw
_acpi_als_read_raw:                     ; @acpi_als_read_raw
	.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	x21, x4
	mov	x19, x2
	mov	x20, x1
	bl	_iio_priv
Lloh0:
	adrp	x8, _IIO_CHAN_INFO_PROCESSED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_CHAN_INFO_PROCESSED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _IIO_CHAN_INFO_RAW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IIO_CHAN_INFO_RAW@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x21
	ccmp	x9, x21, #4, ne
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _IIO_LIGHT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IIO_LIGHT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _ACPI_ALS_ILLUMINANCE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ACPI_ALS_ILLUMINANCE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_acpi_als_read_value
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldr	w8, [sp, #12]
	str	w8, [x19]
Lloh12:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_CHAN_INFO_PROCESSED,8,3    ; @IIO_CHAN_INFO_PROCESSED
	.comm	_IIO_CHAN_INFO_RAW,8,3          ; @IIO_CHAN_INFO_RAW
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_LIGHT,8,3                  ; @IIO_LIGHT
	.comm	_ACPI_ALS_ILLUMINANCE,4,2       ; @ACPI_ALS_ILLUMINANCE
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.no_dead_strip	_acpi_als_read_raw
.subsections_via_symbols
