	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp288_adc_probe
_axp288_adc_probe:                      ## @axp288_adc_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, %r14
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r13
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, (%r13)
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movl	(%r12), %eax
	movl	%eax, 8(%r13)
	movq	%r13, %rdi
	callq	_axp288_adc_initialize
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_3:
	movq	%rax, %rbx
	jmp	LBB0_10
LBB0_6:
	movq	%r14, 32(%r15)
	movl	4(%r14), %eax
	movl	%eax, 24(%r15)
	movq	_axp288_adc_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 20(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, 16(%r15)
	movq	_axp288_adc_iio_info@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_axp288_adc_default_maps@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_iio_map_array_register
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	%r15, %rdi
	callq	_iio_device_register
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_10
## %bb.9:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r15, %rdi
	callq	_iio_map_array_unregister
	movl	%r12d, %ebx
	jmp	LBB0_10
LBB0_7:
	movl	%eax, %ebx
LBB0_10:
	movl	%ebx, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to enable ADC device\n"

	.comm	_axp288_adc_channels,4,2        ## @axp288_adc_channels
	.comm	_axp288_adc_iio_info,4,2        ## @axp288_adc_iio_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_axp288_adc_default_maps,4,2    ## @axp288_adc_default_maps
L_.str.1:                               ## @.str.1
	.asciz	"unable to register iio device\n"

	.no_dead_strip	_axp288_adc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp288_adc_probe
_axp288_adc_probe:                      ; @axp288_adc_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	w0, [x0]
	bl	_dev_get_drvdata
	mov	x22, x0
	mov	x0, x19
	mov	w1, #16
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x23, x0
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	str	x0, [x23]
	tbnz	x0, #63, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	w8, [x22]
	str	w8, [x23, #8]
	mov	x0, x23
	bl	_axp288_adc_initialize
	cbz	w0, LBB0_6
; %bb.3:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_11
LBB0_4:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_5:
	mov	x21, x0
	b	LBB0_11
LBB0_6:
	str	x19, [x20, #32]
	ldr	w8, [x19, #4]
Lloh5:
	adrp	x9, _axp288_adc_channels@GOTPAGE
Lloh6:
	ldr	x9, [x9, _axp288_adc_channels@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #20]
	bl	_ARRAY_SIZE
	str	w0, [x20, #16]
Lloh8:
	adrp	x8, _axp288_adc_iio_info@GOTPAGE
Lloh9:
	ldr	x8, [x8, _axp288_adc_iio_info@GOTPAGEOFF]
Lloh10:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
	str	x8, [x20, #8]
Lloh12:
	ldr	w8, [x9]
	str	w8, [x20]
Lloh13:
	adrp	x8, _axp288_adc_default_maps@GOTPAGE
Lloh14:
	ldr	x8, [x8, _axp288_adc_default_maps@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_iio_map_array_register
	tbnz	w0, #31, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_iio_device_register
	tbnz	w0, #31, LBB0_10
; %bb.8:
	mov	w21, #0
	b	LBB0_11
LBB0_9:
	mov	x21, x0
	b	LBB0_11
LBB0_10:
	mov	x21, x0
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	bl	_iio_map_array_unregister
LBB0_11:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to enable ADC device\n"

	.comm	_axp288_adc_channels,4,2        ; @axp288_adc_channels
	.comm	_axp288_adc_iio_info,4,2        ; @axp288_adc_iio_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_axp288_adc_default_maps,4,2    ; @axp288_adc_default_maps
l_.str.1:                               ; @.str.1
	.asciz	"unable to register iio device\n"

	.no_dead_strip	_axp288_adc_probe
.subsections_via_symbols
