	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_als_notify
_acpi_als_notify:                       ## @acpi_als_notify
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r12
	callq	_acpi_driver_data
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movq	8(%rax), %r15
	movq	%r14, %rdi
	callq	_iio_get_time_ns
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_ACPI_ALS_EVT_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_memset
	cmpl	$128, %r13d
	jne	LBB0_3
## %bb.1:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movq	_ACPI_ALS_ILLUMINANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_acpi_als_read_value
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movl	-48(%rbp), %eax
	movl	%eax, (%r15)
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_iio_push_to_buffers_with_timestamp
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_dev_dbg
LBB0_4:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_ALS_EVT_BUFFER_SIZE,4,2   ## @ACPI_ALS_EVT_BUFFER_SIZE
	.comm	_ACPI_ALS_ILLUMINANCE,4,2       ## @ACPI_ALS_ILLUMINANCE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unhandled ACPI ALS event (%08x)!\n"

	.no_dead_strip	_acpi_als_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_als_notify
_acpi_als_notify:                       ; @acpi_als_notify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x1
	mov	x24, x0
	bl	_acpi_driver_data
	mov	x20, x0
	bl	_iio_priv
	mov	x19, x0
	ldr	x21, [x0, #8]
	mov	x0, x20
	bl	_iio_get_time_ns
	mov	x22, x0
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _ACPI_ALS_EVT_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_ALS_EVT_BUFFER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	_memset
	cmp	w23, #128
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _ACPI_ALS_ILLUMINANCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_ALS_ILLUMINANCE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_acpi_als_read_value
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	w8, [sp, #12]
	str	w8, [x21]
	ldr	x1, [x19, #8]
	mov	x0, x20
	mov	x2, x22
	bl	_iio_push_to_buffers_with_timestamp
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	mov	x2, x23
	bl	_dev_dbg
LBB0_4:
	mov	x0, x19
	bl	_mutex_unlock
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_ALS_EVT_BUFFER_SIZE,4,2   ; @ACPI_ALS_EVT_BUFFER_SIZE
	.comm	_ACPI_ALS_ILLUMINANCE,4,2       ; @ACPI_ALS_ILLUMINANCE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unhandled ACPI ALS event (%08x)!\n"

	.no_dead_strip	_acpi_als_notify
.subsections_via_symbols
