	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm3533_als_setup_irq
_lm3533_als_setup_irq:                  ## @lm3533_als_setup_irq
	.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
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_LM3533_ALS_INT_ENABLE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	16(%rdi), %edi
	movq	_LM3533_REG_ALS_ZONE_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_lm3533_update
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%ebx, %r14d
	jmp	LBB0_4
LBB0_2:
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_lm3533_als_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	8(%r12), %rdi
	callq	_dev_name
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	movq	%r15, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	movq	8(%r12), %rdi
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r15d, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LM3533_ALS_INT_ENABLE_MASK,4,2 ## @LM3533_ALS_INT_ENABLE_MASK
	.comm	_LM3533_REG_ALS_ZONE_INFO,4,2   ## @LM3533_REG_ALS_ZONE_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to disable interrupts\n"

	.comm	_lm3533_als_isr,4,2             ## @lm3533_als_isr
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.1:                               ## @.str.1
	.asciz	"failed to request irq %d\n"

	.no_dead_strip	_lm3533_als_setup_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm3533_als_setup_irq
_lm3533_als_setup_irq:                  ; @lm3533_als_setup_irq
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _LM3533_ALS_INT_ENABLE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LM3533_ALS_INT_ENABLE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	ldr	w0, [x0, #16]
Lloh3:
	adrp	x8, _LM3533_REG_ALS_ZONE_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LM3533_REG_ALS_ZONE_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_lm3533_update
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	x0, [x19, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	w21, [x19]
Lloh8:
	adrp	x8, _lm3533_als_isr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _lm3533_als_isr@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
Lloh11:
	adrp	x8, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w23, w9, w8
	ldr	x0, [x19, #8]
	bl	_dev_name
	mov	x4, x0
	mov	x0, x21
	mov	x1, #0
	mov	x2, x22
	mov	x3, x23
	mov	x5, x20
	bl	_request_threaded_irq
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x0, [x19, #8]
	ldr	w8, [x19]
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	bl	_dev_err
LBB0_5:
	mov	x0, x21
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_LM3533_ALS_INT_ENABLE_MASK,4,2 ; @LM3533_ALS_INT_ENABLE_MASK
	.comm	_LM3533_REG_ALS_ZONE_INFO,4,2   ; @LM3533_REG_ALS_ZONE_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to disable interrupts\n"

	.comm	_lm3533_als_isr,4,2             ; @lm3533_als_isr
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.1:                               ; @.str.1
	.asciz	"failed to request irq %d\n"

	.no_dead_strip	_lm3533_als_setup_irq
.subsections_via_symbols
