	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vcnl4035_probe_trigger
_vcnl4035_probe_trigger:                ## @vcnl4035_probe_trigger
	.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	%rdi, %rbx
	callq	_iio_priv
	movq	%rax, %r14
	movl	8(%rbx), %edx
	movl	(%rbx), %edi
	movl	4(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_devm_iio_trigger_alloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %ecx
	movl	%ecx, 8(%rax)
	movq	_vcnl4035_trigger_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rax)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_iio_trigger_set_drvdata
	movl	(%rbx), %edi
	movq	8(%r14), %rsi
	callq	_devm_iio_trigger_register
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	movq	(%r14), %rdi
	addq	$4, %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_9
LBB0_4:
	movl	(%rbx), %edi
	movq	_vcnl4035_trigger_consumer_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_iio_triggered_buffer_setup_ops@GOTPCREL(%rip), %r8
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_devm_iio_triggered_buffer_setup
	movl	%eax, %r15d
	movq	(%r14), %rax
	leaq	4(%rax), %rdi
	testl	%r15d, %r15d
	js	LBB0_5
## %bb.7:
	movl	(%rax), %esi
	movq	_vcnl4035_drdy_irq_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movq	_VCNL4035_IRQ_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, (%rsp)
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:
	movq	(%r14), %rdi
	movl	(%rdi), %edx
	addq	$4, %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-dev%d"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_vcnl4035_trigger_ops,4,2       ## @vcnl4035_trigger_ops
L_.str.1:                               ## @.str.1
	.asciz	"iio trigger register failed\n"

	.comm	_vcnl4035_trigger_consumer_handler,4,2 ## @vcnl4035_trigger_consumer_handler
	.comm	_iio_triggered_buffer_setup_ops,4,2 ## @iio_triggered_buffer_setup_ops
L_.str.2:                               ## @.str.2
	.asciz	"iio triggered buffer setup failed\n"

	.comm	_vcnl4035_drdy_irq_thread,4,2   ## @vcnl4035_drdy_irq_thread
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_VCNL4035_IRQ_NAME,4,2          ## @VCNL4035_IRQ_NAME
L_.str.3:                               ## @.str.3
	.asciz	"request irq %d for trigger0 failed\n"

	.no_dead_strip	_vcnl4035_probe_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vcnl4035_probe_trigger
_vcnl4035_probe_trigger:                ; @vcnl4035_probe_trigger
	.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	x20, x0
	bl	_iio_priv
	mov	x19, x0
	ldp	w3, w2, [x20, #4]
	ldr	w0, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_devm_iio_trigger_alloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x20]
	str	w8, [x0, #8]
Lloh2:
	adrp	x8, _vcnl4035_trigger_ops@GOTPAGE
Lloh3:
	ldr	x8, [x8, _vcnl4035_trigger_ops@GOTPAGEOFF]
	str	x8, [x0]
	mov	x1, x20
	bl	_iio_trigger_set_drvdata
	ldr	w0, [x20]
	ldr	x1, [x19, #8]
	bl	_devm_iio_trigger_register
	cbz	w0, LBB0_5
; %bb.2:
	mov	x21, x0
	ldr	x8, [x19]
	add	x0, x8, #4
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_3:
	bl	_dev_err
	b	LBB0_7
LBB0_4:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_5:
	ldr	w0, [x20]
Lloh9:
	adrp	x8, _vcnl4035_trigger_consumer_handler@GOTPAGE
Lloh10:
	ldr	x8, [x8, _vcnl4035_trigger_consumer_handler@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x4, _iio_triggered_buffer_setup_ops@GOTPAGE
Lloh13:
	ldr	x4, [x4, _iio_triggered_buffer_setup_ops@GOTPAGEOFF]
	mov	x1, x20
	mov	x2, #0
	bl	_devm_iio_triggered_buffer_setup
	mov	x21, x0
	ldr	x8, [x19]
	add	x0, x8, #4
	tbnz	w21, #31, LBB0_8
; %bb.6:
Lloh14:
	adrp	x9, _vcnl4035_drdy_irq_thread@GOTPAGE
Lloh15:
	ldr	x9, [x9, _vcnl4035_drdy_irq_thread@GOTPAGEOFF]
	ldr	w1, [x8]
Lloh16:
	ldr	w3, [x9]
Lloh17:
	adrp	x8, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh19:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh23:
	adrp	x8, _VCNL4035_IRQ_NAME@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VCNL4035_IRQ_NAME@GOTPAGEOFF]
Lloh25:
	ldr	w5, [x8]
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_9
LBB0_7:
	mov	x0, x21
	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
LBB0_8:
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_9:
	ldr	x0, [x19]
	ldr	w8, [x0], #4
	str	x8, [sp]
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-dev%d"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_vcnl4035_trigger_ops,4,2       ; @vcnl4035_trigger_ops
l_.str.1:                               ; @.str.1
	.asciz	"iio trigger register failed\n"

	.comm	_vcnl4035_trigger_consumer_handler,4,2 ; @vcnl4035_trigger_consumer_handler
	.comm	_iio_triggered_buffer_setup_ops,4,2 ; @iio_triggered_buffer_setup_ops
l_.str.2:                               ; @.str.2
	.asciz	"iio triggered buffer setup failed\n"

	.comm	_vcnl4035_drdy_irq_thread,4,2   ; @vcnl4035_drdy_irq_thread
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_VCNL4035_IRQ_NAME,4,2          ; @VCNL4035_IRQ_NAME
l_.str.3:                               ; @.str.3
	.asciz	"request irq %d for trigger0 failed\n"

	.no_dead_strip	_vcnl4035_probe_trigger
.subsections_via_symbols
