	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm8xxx_xoadc_probe
_pm8xxx_xoadc_probe:                    ## @pm8xxx_xoadc_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %r13
	callq	_of_device_get_match_data
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r14
	movq	%r12, %rdi
	movl	$48, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%rbx, %rdi
	callq	_iio_priv
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r15
	movq	%r12, 40(%rax)
	movq	%r14, 32(%rax)
	leaq	28(%rax), %rdi
	callq	_init_completion
	leaq	24(%r15), %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_pm8xxx_xoadc_parse_channels
	movq	%r13, %rbx
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movl	(%r12), %edi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	_dev_get_regmap
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	%rax, 16(%r15)
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_regulator_get
	movl	%eax, (%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movl	(%r15), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%r13d, %r13d
LBB0_9:
	subl	(%rax), %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_12:
	movl	(%r15), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_10
LBB0_14:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	_pm8xxx_eoc_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%r14), %r9d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rsp)
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %r13d
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_19
LBB0_16:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, 32(%rdi)
	movq	%rbx, 24(%rdi)
	movl	(%r14), %eax
	movl	%eax, 20(%rdi)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	movq	_pm8xxx_xoadc_info@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rdi)
	movl	8(%r15), %eax
	movl	%eax, 4(%rdi)
	movl	4(%r15), %eax
	movl	%eax, (%rdi)
	callq	_iio_device_register
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.17:
	movq	%r15, %rdi
	callq	_pm8xxx_calibrate_device
	testl	%eax, %eax
	je	LBB0_20
## %bb.18:
	movl	%eax, %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_iio_device_unregister
LBB0_19:
	movl	(%r15), %edi
	callq	_regulator_disable
	jmp	LBB0_10
LBB0_20:
	movl	(%r14), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	xorl	%r13d, %r13d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parent regmap unavailable.\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"xoadc-ref"

L_.str.2:                               ## @.str.2
	.asciz	"failed to get XOADC VREF regulator\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to enable XOADC VREF regulator\n"

	.comm	_pm8xxx_eoc_irq,4,2             ## @pm8xxx_eoc_irq
L_.str.4:                               ## @.str.4
	.asciz	"unable to request IRQ\n"

	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_pm8xxx_xoadc_info,4,2          ## @pm8xxx_xoadc_info
L_.str.5:                               ## @.str.5
	.asciz	"%s XOADC driver enabled\n"

	.no_dead_strip	_pm8xxx_xoadc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm8xxx_xoadc_probe
_pm8xxx_xoadc_probe:                    ; @pm8xxx_xoadc_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	x19, x0
	ldr	x23, [x0, #8]
	bl	_of_device_get_match_data
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	mov	w1, #48
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_platform_set_drvdata
	mov	x0, x22
	bl	_iio_priv
	mov	x20, x0
	stp	x21, x19, [x0, #32]
	add	x0, x0, #28
	bl	_init_completion
	add	x0, x20, #24
	bl	_mutex_init
	mov	x0, x20
	mov	x1, x23
	bl	_pm8xxx_xoadc_parse_channels
	mov	x24, x0
	cbnz	w0, LBB0_9
; %bb.3:
	ldr	w0, [x19]
	mov	x1, #0
	bl	_dev_get_regmap
	cbz	x0, LBB0_10
; %bb.4:
	str	x0, [x20, #16]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.5:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20]
	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_6:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_9:
	mov	x0, x24
	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
LBB0_10:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh10:
	adrp	x8, _ENXIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_8
LBB0_11:
	ldr	w0, [x20]
	bl	_regulator_enable
	cbz	w0, LBB0_13
; %bb.12:
	mov	x24, x0
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_9
LBB0_13:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x1, x0
Lloh14:
	adrp	x8, _pm8xxx_eoc_irq@GOTPAGE
Lloh15:
	ldr	x8, [x8, _pm8xxx_eoc_irq@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	ldr	w5, [x21]
	mov	x0, x19
	mov	x3, #0
	mov	w4, #0
	mov	x6, x22
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_15
; %bb.14:
	mov	x24, x0
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_18
LBB0_15:
	stp	x23, x19, [x22, #24]
	ldr	w8, [x21]
Lloh19:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #16]
Lloh22:
	adrp	x8, _pm8xxx_xoadc_info@GOTPAGE
Lloh23:
	ldr	x8, [x8, _pm8xxx_xoadc_info@GOTPAGEOFF]
	str	x8, [x22, #8]
	ldur	d0, [x20, #4]
	str	d0, [x22]
	mov	x0, x22
	bl	_iio_device_register
	mov	x24, x0
	cbnz	w0, LBB0_18
; %bb.16:
	mov	x0, x20
	bl	_pm8xxx_calibrate_device
	mov	x24, x0
	cbz	w0, LBB0_19
; %bb.17:
	mov	x0, x22
	bl	_iio_device_unregister
LBB0_18:
	ldr	w0, [x20]
	bl	_regulator_disable
	b	LBB0_9
LBB0_19:
	ldr	w2, [x21]
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parent regmap unavailable.\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"xoadc-ref"

l_.str.2:                               ; @.str.2
	.asciz	"failed to get XOADC VREF regulator\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to enable XOADC VREF regulator\n"

	.comm	_pm8xxx_eoc_irq,4,2             ; @pm8xxx_eoc_irq
l_.str.4:                               ; @.str.4
	.asciz	"unable to request IRQ\n"

	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_pm8xxx_xoadc_info,4,2          ; @pm8xxx_xoadc_info
l_.str.5:                               ; @.str.5
	.asciz	"%s XOADC driver enabled\n"

	.no_dead_strip	_pm8xxx_xoadc_probe
.subsections_via_symbols
