	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adc5_probe
_adc5_probe:                            ## @adc5_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, %rbx
	movq	16(%rdi), %r14
	movl	8(%rdi), %edi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_dev_get_regmap
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	js	LBB0_13
## %bb.3:
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	movl	$40, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_iio_priv
	movq	%rax, %r13
	movq	%r12, 32(%rax)
	movq	%r15, 24(%rax)
	movl	-44(%rbp), %eax
	movl	%eax, 20(%r13)
	leaq	16(%r13), %rdi
	callq	_init_completion
	leaq	12(%r13), %rdi
	callq	_mutex_init
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_adc5_get_dt_data
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_14
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_14
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_14
LBB0_7:
	movq	%r15, %r12
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_8
## %bb.11:
	movq	_adc5_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %r8
	movq	%r12, %rdi
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	movq	%r13, %r9
	callq	_devm_request_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_12
LBB0_8:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	je	LBB0_14
## %bb.9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	je	LBB0_14
## %bb.10:
	movl	$1, (%r13)
LBB0_12:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, 32(%rsi)
	movq	%r14, 24(%rsi)
	movl	(%rbx), %eax
	movl	%eax, 20(%rsi)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rsi)
	movq	_adc5_info@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rsi)
	movl	8(%r13), %eax
	movl	%eax, 4(%rsi)
	movl	4(%r13), %eax
	movl	%eax, (%rsi)
	movq	%r12, %rdi
	callq	_devm_iio_device_register
LBB0_13:
	movl	%eax, %r15d
LBB0_14:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"adc get dt data failed\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_adc5_isr,4,2                   ## @adc5_isr
L_.str.2:                               ## @.str.2
	.asciz	"pm-adc5"

	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_adc5_info,4,2                  ## @adc5_info
	.no_dead_strip	_adc5_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adc5_probe
_adc5_probe:                            ; @adc5_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
	ldr	x21, [x0, #16]
	mov	x19, x0
	ldr	w0, [x19, #8]!
	mov	x1, #0
	bl	_dev_get_regmap
	cbz	x0, LBB0_5
; %bb.1:
	mov	x25, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	bl	_of_property_read_u32
	tbnz	w0, #31, LBB0_14
; %bb.2:
	mov	x0, x19
	mov	w1, #40
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_6
; %bb.3:
	mov	x22, x0
	bl	_iio_priv
	mov	x23, x0
	stp	x19, x25, [x0, #24]
	ldr	w8, [sp, #12]
	str	w8, [x0, #20]
	add	x0, x0, #16
	bl	_init_completion
	add	x0, x23, #12
	bl	_mutex_init
	mov	x0, x23
	mov	x1, x21
	bl	_adc5_get_dt_data
	cbz	w0, LBB0_8
; %bb.4:
	mov	x24, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	b	LBB0_15
LBB0_5:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_15
LBB0_8:
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	mov	x24, x0
	tbnz	w0, #31, LBB0_10
; %bb.9:
Lloh8:
	adrp	x8, _adc5_isr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _adc5_isr@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x4, l_.str.2@PAGE
Lloh12:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x24
	mov	w3, #0
	mov	x5, x23
	bl	_devm_request_irq
	mov	x24, x0
	cbnz	w0, LBB0_15
	b	LBB0_13
LBB0_10:
Lloh13:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmn	w24, w8
	b.eq	LBB0_15
; %bb.11:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmn	w24, w8
	b.eq	LBB0_15
; %bb.12:
	mov	w8, #1
	str	w8, [x23]
LBB0_13:
	stp	x21, x19, [x22, #24]
	ldr	w8, [x20]
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, _adc5_info@GOTPAGE
Lloh23:
	ldr	x8, [x8, _adc5_info@GOTPAGEOFF]
	str	x8, [x22, #8]
	ldur	d0, [x23, #4]
	str	d0, [x22]
	mov	x0, x19
	mov	x1, x22
	bl	_devm_iio_device_register
LBB0_14:
	mov	x24, x0
LBB0_15:
	mov	x0, x24
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"adc get dt data failed\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_adc5_isr,4,2                   ; @adc5_isr
l_.str.2:                               ; @.str.2
	.asciz	"pm-adc5"

	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_adc5_info,4,2                  ; @adc5_info
	.no_dead_strip	_adc5_probe
.subsections_via_symbols
