	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isl29018_probe
_isl29018_probe:                        ## @isl29018_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	%rsi, %rbx
	movq	%rdi, %r12
	movl	$0, -44(%rbp)
	movl	$48, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_clientdata
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	movq	(%rbx), %r13
	movl	8(%rbx), %eax
	movl	%eax, -44(%rbp)
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_19
LBB0_3:
	xorl	%r13d, %r13d
LBB0_5:
	movq	%r12, %rdi
	callq	_ACPI_HANDLE
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_isl29018_match_acpi_device
	movq	%rax, %r13
LBB0_7:
	movq	%r15, %rdi
	addq	$40, %rdi
	callq	_mutex_init
	movl	-44(%rbp), %eax
	movl	%eax, (%r15)
	movl	$1, 4(%r15)
	movq	$0, 32(%r15)
	movq	_ISL29018_INT_TIME_16@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	_isl29018_scales@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	movl	$0, 16(%r15)
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_regulator_get
	movl	%eax, 24(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	24(%r15), %edi
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	callq	_PTR_ERR
	movl	%eax, %r13d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%r13d, %ecx
	addl	(%rax), %ecx
	je	LBB0_19
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_10
LBB0_11:
	movq	%r13, %rbx
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_10
LBB0_13:
	movq	_isl29018_disable_regulator_action@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_devm_add_action_or_reset
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %rsi
LBB0_10:
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_19:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_isl29018_chip_info_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	-44(%rbp), %rcx
	shlq	$4, %rcx
	movl	12(%rax,%rcx), %esi
	movq	%r12, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 20(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	20(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %r13d
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_19
LBB0_17:
	movq	%r15, %rdi
	callq	_isl29018_chip_init
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	movq	_isl29018_chip_info_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	-44(%rbp), %rcx
	shlq	$4, %rcx
	movl	8(%rax,%rcx), %edx
	movl	%edx, 32(%r14)
	movl	4(%rax,%rcx), %edx
	movl	%edx, 28(%r14)
	movl	(%rax,%rcx), %eax
	movl	%eax, 24(%r14)
	movq	%rbx, (%r14)
	movq	%r12, 16(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_devm_iio_device_register
	movl	%eax, %r13d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ISL29018_INT_TIME_16,8,3       ## @ISL29018_INT_TIME_16
	.comm	_isl29018_scales,8,3            ## @isl29018_scales
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vcc"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.1:                               ## @.str.1
	.asciz	"failed to get VCC regulator!\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to enable VCC regulator!\n"

	.comm	_isl29018_disable_regulator_action,4,2 ## @isl29018_disable_regulator_action
L_.str.3:                               ## @.str.3
	.asciz	"failed to setup regulator cleanup action!\n"

	.comm	_isl29018_chip_info_tbl,8,3     ## @isl29018_chip_info_tbl
L_.str.4:                               ## @.str.4
	.asciz	"regmap initialization fails: %d\n"

	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.no_dead_strip	_isl29018_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isl29018_probe
_isl29018_probe:                        ; @isl29018_probe
	.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	x19, x0
	str	wzr, [sp, #12]
	mov	w1, #48
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	cbz	x23, LBB0_4
; %bb.2:
	ldr	x22, [x23]
	ldr	w8, [x23, #8]
	str	w8, [sp, #12]
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_17
LBB0_4:
	mov	x22, #0
LBB0_5:
	mov	x0, x19
	bl	_ACPI_HANDLE
	cbz	x0, LBB0_7
; %bb.6:
	add	x1, sp, #12
	mov	x0, x19
	bl	_isl29018_match_acpi_device
	mov	x22, x0
LBB0_7:
	add	x0, x21, #40
	bl	_mutex_init
	ldr	w8, [sp, #12]
	mov	w9, #1
	stp	w8, w9, [x21]
	str	xzr, [x21, #32]
Lloh3:
	adrp	x8, _ISL29018_INT_TIME_16@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISL29018_INT_TIME_16@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x21, #8]
Lloh6:
	adrp	x9, _isl29018_scales@GOTPAGE
Lloh7:
	ldr	x9, [x9, _isl29018_scales@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x8, [x9, x8, lsl #3]
	ldr	w8, [x8]
	str	w8, [x21, #28]
	str	wzr, [x21, #16]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	w0, [x21, #24]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x21, #24]
	cbz	x8, LBB0_10
; %bb.8:
	bl	_PTR_ERR
	mov	x23, x0
Lloh11:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_17
; %bb.9:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_10:
	bl	_regulator_enable
	cbz	w0, LBB0_12
; %bb.11:
	mov	x23, x0
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_12:
Lloh18:
	adrp	x8, _isl29018_disable_regulator_action@GOTPAGE
Lloh19:
	ldr	x8, [x8, _isl29018_disable_regulator_action@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_devm_add_action_or_reset
	cbz	w0, LBB0_14
; %bb.13:
	mov	x23, x0
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_16
LBB0_14:
Lloh23:
	adrp	x24, _isl29018_chip_info_tbl@GOTPAGE
Lloh24:
	ldr	x24, [x24, _isl29018_chip_info_tbl@GOTPAGEOFF]
	ldr	x8, [x24]
	ldrsw	x9, [sp, #12]
	add	x8, x8, x9, lsl #4
	ldr	w1, [x8, #12]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	str	w0, [x21, #20]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.15:
	ldr	w0, [x21, #20]
	bl	_PTR_ERR
	mov	x23, x0
	str	x23, [sp]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_16:
	mov	x0, x19
	bl	_dev_err
LBB0_17:
	mov	x0, x23
	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
LBB0_18:
	mov	x0, x21
	bl	_isl29018_chip_init
	mov	x23, x0
	cbnz	w0, LBB0_17
; %bb.19:
	ldr	x8, [x24]
	ldrsw	x9, [sp, #12]
	add	x8, x8, x9, lsl #4
	ldr	w9, [x8, #8]
	str	w9, [x20, #32]
	ldr	d0, [x8]
	str	d0, [x20, #24]
	str	x22, [x20]
	str	x19, [x20, #16]
Lloh27:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_devm_iio_device_register
	mov	x23, x0
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ISL29018_INT_TIME_16,8,3       ; @ISL29018_INT_TIME_16
	.comm	_isl29018_scales,8,3            ; @isl29018_scales
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vcc"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.1:                               ; @.str.1
	.asciz	"failed to get VCC regulator!\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to enable VCC regulator!\n"

	.comm	_isl29018_disable_regulator_action,4,2 ; @isl29018_disable_regulator_action
l_.str.3:                               ; @.str.3
	.asciz	"failed to setup regulator cleanup action!\n"

	.comm	_isl29018_chip_info_tbl,8,3     ; @isl29018_chip_info_tbl
l_.str.4:                               ; @.str.4
	.asciz	"regmap initialization fails: %d\n"

	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.no_dead_strip	_isl29018_probe
.subsections_via_symbols
