	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vcnl4035_probe
_vcnl4035_probe:                        ## @vcnl4035_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	%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	%rdi, %r12
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_vcnl4035_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_regmap_init_i2c
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.13:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_12
LBB0_3:
	movq	%rbx, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_clientdata
	movq	%r12, 8(%r14)
	movq	%r13, (%r14)
	movq	%r15, 24(%rbx)
	movq	_vcnl4035_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_VCNL4035_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_vcnl4035_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 8(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, 4(%rbx)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_vcnl4035_init
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	cmpq	$0, (%r12)
	jle	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	_vcnl4035_probe_trigger
	testl	%eax, %eax
	js	LBB0_7
LBB0_8:
	movq	%r15, %rdi
	callq	_pm_runtime_set_active
	testl	%eax, %eax
	js	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	js	LBB0_10
## %bb.14:
	movq	%r15, %rdi
	callq	_pm_runtime_enable
	movq	_VCNL4035_SLEEP_DELAY_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pm_runtime_set_autosuspend_delay
	movq	%r15, %rdi
	callq	_pm_runtime_use_autosuspend
	xorl	%r13d, %r13d
	jmp	LBB0_12
LBB0_4:
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_12
LBB0_10:
	movl	%eax, %r13d
	jmp	LBB0_11
LBB0_7:
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
LBB0_11:
	movq	_VCNL4035_MODE_ALS_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_vcnl4035_set_als_power_state
LBB0_12:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_vcnl4035_regmap_config,4,2     ## @vcnl4035_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"regmap_init failed!\n"

	.comm	_vcnl4035_info,4,2              ## @vcnl4035_info
	.comm	_VCNL4035_DRV_NAME,4,2          ## @VCNL4035_DRV_NAME
	.comm	_vcnl4035_channels,4,2          ## @vcnl4035_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
L_.str.1:                               ## @.str.1
	.asciz	"vcnl4035 chip init failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"vcnl4035 unable init trigger\n"

	.comm	_VCNL4035_SLEEP_DELAY_MS,4,2    ## @VCNL4035_SLEEP_DELAY_MS
	.comm	_VCNL4035_MODE_ALS_DISABLE,4,2  ## @VCNL4035_MODE_ALS_DISABLE
	.no_dead_strip	_vcnl4035_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vcnl4035_probe
_vcnl4035_probe:                        ; @vcnl4035_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x0
	add	x19, x0, #8
	mov	x0, x19
	mov	w1, #16
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, _vcnl4035_regmap_config@GOTPAGE
Lloh1:
	ldr	x1, [x1, _vcnl4035_regmap_config@GOTPAGEOFF]
	mov	x0, x22
	bl	_devm_regmap_init_i2c
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_4:
	mov	x0, x21
	bl	_iio_priv
	mov	x20, x0
	mov	x0, x22
	mov	x1, x21
	bl	_i2c_set_clientdata
	stp	x23, x22, [x20]
Lloh7:
	adrp	x8, _vcnl4035_info@GOTPAGE
Lloh8:
	ldr	x8, [x8, _vcnl4035_info@GOTPAGEOFF]
	stp	x8, x19, [x21, #16]
Lloh9:
	adrp	x8, _VCNL4035_DRV_NAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VCNL4035_DRV_NAME@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _vcnl4035_channels@GOTPAGE
Lloh13:
	ldr	x9, [x9, _vcnl4035_channels@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x9]
	stp	w0, w8, [x21, #8]
	bl	_ARRAY_SIZE
Lloh15:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	stp	w8, w0, [x21]
	mov	x0, x20
	bl	_vcnl4035_init
	tbnz	w0, #31, LBB0_10
; %bb.5:
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_vcnl4035_probe_trigger
	tbnz	w0, #31, LBB0_12
LBB0_7:
	mov	x0, x19
	bl	_pm_runtime_set_active
	tbnz	w0, #31, LBB0_11
; %bb.8:
	mov	x0, x21
	bl	_iio_device_register
	tbnz	w0, #31, LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_pm_runtime_enable
Lloh18:
	adrp	x8, _VCNL4035_SLEEP_DELAY_MS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VCNL4035_SLEEP_DELAY_MS@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x19
	bl	_pm_runtime_use_autosuspend
	mov	w23, #0
	b	LBB0_14
LBB0_10:
	mov	x23, x0
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_14
LBB0_11:
	mov	x23, x0
	b	LBB0_13
LBB0_12:
	mov	x23, x0
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_13:
Lloh25:
	adrp	x8, _VCNL4035_MODE_ALS_DISABLE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _VCNL4035_MODE_ALS_DISABLE@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_vcnl4035_set_als_power_state
LBB0_14:
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_vcnl4035_regmap_config,4,2     ; @vcnl4035_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"regmap_init failed!\n"

	.comm	_vcnl4035_info,4,2              ; @vcnl4035_info
	.comm	_VCNL4035_DRV_NAME,4,2          ; @VCNL4035_DRV_NAME
	.comm	_vcnl4035_channels,4,2          ; @vcnl4035_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
l_.str.1:                               ; @.str.1
	.asciz	"vcnl4035 chip init failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"vcnl4035 unable init trigger\n"

	.comm	_VCNL4035_SLEEP_DELAY_MS,4,2    ; @VCNL4035_SLEEP_DELAY_MS
	.comm	_VCNL4035_MODE_ALS_DISABLE,4,2  ; @VCNL4035_MODE_ALS_DISABLE
	.no_dead_strip	_vcnl4035_probe
.subsections_via_symbols
