	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ab8500_gpadc_probe
_ab8500_gpadc_probe:                    ## @ab8500_gpadc_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_platform_get_irq_byname
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movq	16(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_platform_get_irq_byname
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	movq	16(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_6:
	movq	%r14, 16(%rbx)
	movl	(%r14), %edi
	callq	_dev_get_drvdata
	movl	%eax, 40(%rbx)
	leaq	36(%rbx), %rdi
	callq	_mutex_init
	leaq	32(%rbx), %rdi
	callq	_init_completion
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	js	LBB0_9
## %bb.7:
	movq	_ab8500_bm_gpadcconvend_handler@GOTPCREL(%rip), %rax
	movq	_IRQF_NO_SUSPEND@GOTPCREL(%rip), %rdx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movl	(%rax), %edx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	leaq	L_.str.4(%rip), %r8
	xorl	%esi, %esi
	movq	%rbx, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_8
LBB0_9:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	js	LBB0_12
## %bb.10:
	movq	_ab8500_bm_gpadcconvend_handler@GOTPCREL(%rip), %rax
	movq	_IRQF_NO_SUSPEND@GOTPCREL(%rip), %rdx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movl	(%rax), %edx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	leaq	L_.str.6(%rip), %r8
	xorl	%esi, %esi
	movq	%rbx, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_11
LBB0_12:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movl	%eax, 28(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	28(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r15d
	movq	16(%rbx), %rdi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_16
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_17
LBB0_8:
	movl	%eax, %r15d
	movq	(%rbx), %rdx
	movq	16(%rbx), %rdi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_17
LBB0_14:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movl	28(%rbx), %edi
	callq	_regulator_enable
	movq	16(%rbx), %rdi
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:
	movl	%eax, %r15d
	leaq	L_.str.9(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_16
LBB0_11:
	movl	%eax, %r15d
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rdi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_16:
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movl	8(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
LBB0_17:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_GPADC_AUDOSUSPEND_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pm_runtime_set_autosuspend_delay
	movq	16(%rbx), %rdi
	callq	_pm_runtime_use_autosuspend
	movq	16(%rbx), %rdi
	callq	_pm_runtime_set_active
	movq	16(%rbx), %rdi
	callq	_pm_runtime_enable
	movq	%rbx, %rdi
	callq	_ab8500_gpadc_read_calibration_data
	movq	%rbx, %rdi
	addq	$24, %rdi
	movq	_ab8500_gpadc_list@GOTPCREL(%rip), %rsi
	callq	_list_add_tail
	movq	16(%rbx), %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_dev_dbg
	xorl	%r15d, %r15d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SW_CONV_END"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get platform sw_conv_end irq\n"

L_.str.2:                               ## @.str.2
	.asciz	"HW_CONV_END"

L_.str.3:                               ## @.str.3
	.asciz	"failed to get platform hw_conv_end irq\n"

	.comm	_ab8500_bm_gpadcconvend_handler,4,2 ## @ab8500_bm_gpadcconvend_handler
	.comm	_IRQF_NO_SUSPEND,4,2            ## @IRQF_NO_SUSPEND
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.4:                               ## @.str.4
	.asciz	"ab8500-gpadc-sw"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to register interrupt irq: %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"ab8500-gpadc-hw"

L_.str.7:                               ## @.str.7
	.asciz	"vddadc"

L_.str.8:                               ## @.str.8
	.asciz	"failed to get vtvout LDO\n"

L_.str.9:                               ## @.str.9
	.asciz	"Failed to enable vtvout LDO: %d\n"

	.comm	_GPADC_AUDOSUSPEND_DELAY,4,2    ## @GPADC_AUDOSUSPEND_DELAY
	.comm	_ab8500_gpadc_list,4,2          ## @ab8500_gpadc_list
L_.str.10:                              ## @.str.10
	.asciz	"probe success\n"

	.no_dead_strip	_ab8500_gpadc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ab8500_gpadc_probe
_ab8500_gpadc_probe:                    ; @ab8500_gpadc_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_platform_get_irq_byname
	str	x0, [x19]
	tbz	x0, #63, LBB0_3
; %bb.2:
	ldr	x0, [x19, #16]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_3:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_platform_get_irq_byname
	str	x0, [x19, #8]
	tbz	x0, #63, LBB0_5
; %bb.4:
	ldr	x0, [x19, #16]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
LBB0_5:
	str	x20, [x19, #16]
	ldr	w0, [x20]
	bl	_dev_get_drvdata
	str	w0, [x19, #40]
	add	x0, x19, #36
	bl	_mutex_init
	add	x0, x19, #32
	bl	_init_completion
	ldr	x0, [x19]
Lloh11:
	adrp	x23, _ab8500_bm_gpadcconvend_handler@GOTPAGE
Lloh12:
	ldr	x23, [x23, _ab8500_bm_gpadcconvend_handler@GOTPAGEOFF]
Lloh13:
	adrp	x24, _IRQF_NO_SUSPEND@GOTPAGE
Lloh14:
	ldr	x24, [x24, _IRQF_NO_SUSPEND@GOTPAGEOFF]
Lloh15:
	adrp	x25, _IRQF_SHARED@GOTPAGE
Lloh16:
	ldr	x25, [x25, _IRQF_SHARED@GOTPAGEOFF]
Lloh17:
	adrp	x22, _IRQF_ONESHOT@GOTPAGE
Lloh18:
	ldr	x22, [x22, _IRQF_ONESHOT@GOTPAGEOFF]
	tbnz	x0, #63, LBB0_7
; %bb.6:
	ldr	w2, [x23]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w3, w8, w9
Lloh19:
	adrp	x4, l_.str.4@PAGE
Lloh20:
	add	x4, x4, l_.str.4@PAGEOFF
	mov	x1, #0
	mov	x5, x19
	bl	_request_threaded_irq
	tbnz	w0, #31, LBB0_12
LBB0_7:
	ldr	x0, [x19, #8]
	tbnz	x0, #63, LBB0_9
; %bb.8:
	ldr	w2, [x23]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w3, w8, w9
Lloh21:
	adrp	x4, l_.str.6@PAGE
Lloh22:
	add	x4, x4, l_.str.6@PAGEOFF
	mov	x1, #0
	mov	x5, x19
	bl	_request_threaded_irq
	tbnz	w0, #31, LBB0_15
LBB0_9:
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get
	str	w0, [x19, #28]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.10:
	ldr	w0, [x19, #28]
	bl	_PTR_ERR
	mov	x21, x0
	ldr	x0, [x19, #16]
Lloh25:
	adrp	x1, l_.str.8@PAGE
Lloh26:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_16
LBB0_11:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_17
LBB0_12:
	mov	x21, x0
	ldr	x0, [x19, #16]
	ldr	x8, [x19]
	str	x8, [sp]
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_err
	b	LBB0_17
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	ldr	w0, [x19, #28]
	bl	_regulator_enable
	mov	x21, x0
	ldr	x0, [x19, #16]
	cbz	w21, LBB0_18
; %bb.14:
	str	x21, [sp]
Lloh32:
	adrp	x1, l_.str.9@PAGE
Lloh33:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_16
LBB0_15:
	mov	x21, x0
	ldp	x8, x0, [x19, #8]
	str	x8, [sp]
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_16:
	bl	_dev_err
	ldr	w0, [x19]
	mov	x1, x19
	bl	_free_irq
	ldr	w0, [x19, #8]
	mov	x1, x19
	bl	_free_irq
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_18:
Lloh36:
	adrp	x8, _GPADC_AUDOSUSPEND_DELAY@GOTPAGE
Lloh37:
	ldr	x8, [x8, _GPADC_AUDOSUSPEND_DELAY@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	bl	_pm_runtime_set_autosuspend_delay
	ldr	x0, [x19, #16]
	bl	_pm_runtime_use_autosuspend
	ldr	x0, [x19, #16]
	bl	_pm_runtime_set_active
	ldr	x0, [x19, #16]
	bl	_pm_runtime_enable
	mov	x0, x19
	bl	_ab8500_gpadc_read_calibration_data
	add	x0, x19, #24
Lloh39:
	adrp	x1, _ab8500_gpadc_list@GOTPAGE
Lloh40:
	ldr	x1, [x1, _ab8500_gpadc_list@GOTPAGEOFF]
	bl	_list_add_tail
	ldr	x0, [x19, #16]
Lloh41:
	adrp	x1, l_.str.10@PAGE
Lloh42:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_dev_dbg
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SW_CONV_END"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get platform sw_conv_end irq\n"

l_.str.2:                               ; @.str.2
	.asciz	"HW_CONV_END"

l_.str.3:                               ; @.str.3
	.asciz	"failed to get platform hw_conv_end irq\n"

	.comm	_ab8500_bm_gpadcconvend_handler,4,2 ; @ab8500_bm_gpadcconvend_handler
	.comm	_IRQF_NO_SUSPEND,4,2            ; @IRQF_NO_SUSPEND
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.4:                               ; @.str.4
	.asciz	"ab8500-gpadc-sw"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to register interrupt irq: %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"ab8500-gpadc-hw"

l_.str.7:                               ; @.str.7
	.asciz	"vddadc"

l_.str.8:                               ; @.str.8
	.asciz	"failed to get vtvout LDO\n"

l_.str.9:                               ; @.str.9
	.asciz	"Failed to enable vtvout LDO: %d\n"

	.comm	_GPADC_AUDOSUSPEND_DELAY,4,2    ; @GPADC_AUDOSUSPEND_DELAY
	.comm	_ab8500_gpadc_list,4,2          ; @ab8500_gpadc_list
l_.str.10:                              ; @.str.10
	.asciz	"probe success\n"

	.no_dead_strip	_ab8500_gpadc_probe
.subsections_via_symbols
