	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apds9300_probe
_apds9300_probe:                        ## @apds9300_probe
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$16, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	movq	%r15, 8(%r14)
	movq	%r14, %rdi
	callq	_apds9300_chip_init
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movq	%r14, %rdi
	callq	_mutex_init
	movq	%r15, 24(%r12)
	movq	_apds9300_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 20(%r12)
	callq	_ARRAY_SIZE
	movl	%eax, 16(%r12)
	movq	_APDS9300_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.7:
	movq	_apds9300_info@GOTPCREL(%rip), %rax
	movq	%rax, (%r12)
	movq	_apds9300_interrupt_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movq	_APDS9300_IRQ_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r12, (%rsp)
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_5
## %bb.8:
	movl	%eax, %ebx
	movl	%eax, %edx
	negl	%edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_4:
	movq	_apds9300_info_no_irq@GOTPCREL(%rip), %rax
	movq	%rax, (%r12)
LBB0_5:
	movq	%r12, %rdi
	callq	_iio_device_register
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_10
LBB0_6:
	movl	%eax, %ebx
LBB0_9:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_apds9300_set_power_state
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_apds9300_channels,4,2          ## @apds9300_channels
	.comm	_APDS9300_DRV_NAME,4,2          ## @APDS9300_DRV_NAME
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_apds9300_info,4,2              ## @apds9300_info
	.comm	_apds9300_info_no_irq,4,2       ## @apds9300_info_no_irq
	.comm	_apds9300_interrupt_handler,4,2 ## @apds9300_interrupt_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_APDS9300_IRQ_NAME,4,2          ## @APDS9300_IRQ_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq request error %d\n"

	.no_dead_strip	_apds9300_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apds9300_probe
_apds9300_probe:                        ; @apds9300_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	w1, #16
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	bl	_iio_priv
	mov	x19, x0
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_set_clientdata
	str	x20, [x19, #8]
	mov	x0, x19
	bl	_apds9300_chip_init
	tbnz	w0, #31, LBB0_9
; %bb.2:
	mov	x0, x19
	bl	_mutex_init
	str	x20, [x21, #24]
Lloh0:
	adrp	x8, _apds9300_channels@GOTPAGE
Lloh1:
	ldr	x8, [x8, _apds9300_channels@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	w0, [x21, #20]
	bl	_ARRAY_SIZE
	str	w0, [x21, #16]
Lloh3:
	adrp	x8, _APDS9300_DRV_NAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APDS9300_DRV_NAME@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #8]
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_6
; %bb.3:
Lloh9:
	adrp	x8, _apds9300_info@GOTPAGE
Lloh10:
	ldr	x8, [x8, _apds9300_info@GOTPAGEOFF]
Lloh11:
	adrp	x9, _apds9300_interrupt_handler@GOTPAGE
Lloh12:
	ldr	x9, [x9, _apds9300_interrupt_handler@GOTPAGEOFF]
	str	x8, [x21]
Lloh13:
	ldr	w3, [x9]
Lloh14:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh16:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh20:
	adrp	x8, _APDS9300_IRQ_NAME@GOTPAGE
Lloh21:
	ldr	x8, [x8, _APDS9300_IRQ_NAME@GOTPAGEOFF]
Lloh22:
	ldr	w5, [x8]
	mov	x0, x20
	mov	x2, #0
	mov	x6, x21
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_7
; %bb.4:
	mov	x22, x0
	neg	w2, w0
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_10
LBB0_5:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_11
LBB0_6:
Lloh28:
	adrp	x8, _apds9300_info_no_irq@GOTPAGE
Lloh29:
	ldr	x8, [x8, _apds9300_info_no_irq@GOTPAGEOFF]
	str	x8, [x21]
LBB0_7:
	mov	x0, x21
	bl	_iio_device_register
	tbnz	w0, #31, LBB0_9
; %bb.8:
	mov	w22, #0
	b	LBB0_11
LBB0_9:
	mov	x22, x0
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	bl	_apds9300_set_power_state
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_apds9300_channels,4,2          ; @apds9300_channels
	.comm	_APDS9300_DRV_NAME,4,2          ; @APDS9300_DRV_NAME
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_apds9300_info,4,2              ; @apds9300_info
	.comm	_apds9300_info_no_irq,4,2       ; @apds9300_info_no_irq
	.comm	_apds9300_interrupt_handler,4,2 ; @apds9300_interrupt_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_APDS9300_IRQ_NAME,4,2          ; @APDS9300_IRQ_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq request error %d\n"

	.no_dead_strip	_apds9300_probe
.subsections_via_symbols
