	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp20x_probe
_axp20x_probe:                          ## @axp20x_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, %r15
	movl	4(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movl	(%r12), %eax
	movl	%eax, (%r14)
	movq	%r15, 32(%rbx)
	movl	(%r15), %eax
	movl	%eax, 24(%rbx)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rbx)
	movq	%r15, %rdi
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	callq	_of_device_get_match_data
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_13
LBB0_3:
	callq	_platform_get_device_id
	movq	8(%rax), %rax
LBB0_5:
	movq	%rax, 8(%r14)
	movq	%r15, %rdi
	callq	_platform_get_device_id
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	8(%r14), %rax
	movl	36(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movl	32(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movl	28(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	(%r14), %edi
	movq	_AXP20X_ADC_EN1@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	24(%rax), %edx
	callq	_regmap_write
	movq	8(%r14), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_7
## %bb.6:
	movl	(%r14), %edi
	movq	_AXP20X_ADC_EN2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AXP20X_ADC_EN2_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movq	8(%r14), %rcx
LBB0_7:
	movq	%r14, %rdi
	movl	$100, %esi
	callq	*16(%rcx)
	movq	8(%r14), %rax
	movl	8(%rax), %esi
	movq	%rbx, %rdi
	callq	_iio_map_array_register
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	callq	_iio_device_register
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jns	LBB0_13
## %bb.10:
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_iio_map_array_unregister
	movl	%r13d, %r12d
	movq	_AXP20X_ADC_EN1@GOTPCREL(%rip), %r13
	jmp	LBB0_11
LBB0_8:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_11:
	movl	(%r14), %edi
	movl	(%r13), %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.12:
	movl	(%r14), %edi
	movq	_AXP20X_ADC_EN2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_regmap_write
LBB0_13:
	movl	%r12d, %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	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_AXP20X_ADC_EN1,4,2             ## @AXP20X_ADC_EN1
	.comm	_AXP20X_ADC_EN2,4,2             ## @AXP20X_ADC_EN2
	.comm	_AXP20X_ADC_EN2_MASK,4,2        ## @AXP20X_ADC_EN2_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to register IIO maps: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"could not register the device\n"

	.no_dead_strip	_axp20x_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp20x_probe
_axp20x_probe:                          ; @axp20x_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	x20, x0
	ldr	w0, [x0, #4]
	bl	_dev_get_drvdata
	mov	x22, x0
	mov	x0, x20
	mov	w1, #16
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	bl	_iio_priv
	mov	x19, x0
	mov	x0, x20
	mov	x1, x21
	bl	_platform_set_drvdata
	ldr	w8, [x22]
	str	w8, [x19]
	str	x20, [x21, #32]
	ldr	w8, [x20]
	str	w8, [x21, #24]
Lloh0:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x21, #16]
	mov	x0, x20
	cbz	w8, LBB0_4
; %bb.2:
	bl	_of_device_get_match_data
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_4:
	bl	_platform_get_device_id
	ldr	x0, [x0, #8]
LBB0_5:
	str	x0, [x19, #8]
	mov	x0, x20
	bl	_platform_get_device_id
	ldr	w8, [x0]
	ldr	x9, [x19, #8]
	ldr	w10, [x9, #36]
	stp	w10, w8, [x21, #8]
	ldur	d0, [x9, #28]
	str	d0, [x21]
	ldr	w0, [x19]
Lloh6:
	adrp	x24, _AXP20X_ADC_EN1@GOTPAGE
Lloh7:
	ldr	x24, [x24, _AXP20X_ADC_EN1@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w2, [x9, #24]
	bl	_regmap_write
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
Lloh8:
	adrp	x23, _AXP20X_ADC_EN2@GOTPAGE
Lloh9:
	ldr	x23, [x23, _AXP20X_ADC_EN2@GOTPAGEOFF]
	cbz	x9, LBB0_7
; %bb.6:
	ldr	w0, [x19]
	ldr	w1, [x23]
Lloh10:
	adrp	x8, _AXP20X_ADC_EN2_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AXP20X_ADC_EN2_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
	ldr	x8, [x19, #8]
LBB0_7:
	ldr	x8, [x8, #16]
	mov	x0, x19
	mov	w1, #100
	blr	x8
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #8]
	mov	x0, x21
	bl	_iio_map_array_register
	tbnz	w0, #31, LBB0_10
; %bb.8:
	mov	x0, x21
	bl	_iio_device_register
	tbnz	w0, #31, LBB0_11
; %bb.9:
	mov	w22, #0
	b	LBB0_14
LBB0_10:
	mov	x22, x0
	str	x22, [sp]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_12
LBB0_11:
	mov	x22, x0
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x21
	bl	_iio_map_array_unregister
LBB0_12:
	ldr	w0, [x19]
	ldr	w1, [x24]
	mov	w2, #0
	bl	_regmap_write
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	w0, [x19]
	ldr	w1, [x23]
	mov	w2, #0
	bl	_regmap_write
LBB0_14:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_AXP20X_ADC_EN1,4,2             ; @AXP20X_ADC_EN1
	.comm	_AXP20X_ADC_EN2,4,2             ; @AXP20X_ADC_EN2
	.comm	_AXP20X_ADC_EN2_MASK,4,2        ; @AXP20X_ADC_EN2_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to register IIO maps: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"could not register the device\n"

	.no_dead_strip	_axp20x_probe
.subsections_via_symbols
