	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_gpadc_probe_mfd
_sun4i_gpadc_probe_mfd:                 ## @sun4i_gpadc_probe_mfd
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movl	(%r14), %edi
	callq	_dev_get_drvdata
	movl	$0, (%rbx)
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_sun4i_gpadc_channels@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movq	%rax, 8(%r15)
	movq	(%r12), %rax
	movq	%rax, (%r15)
	movq	%r14, %rdi
	callq	_platform_get_device_id
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	_CONFIG_THERMAL_OF@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %eax
	movl	%eax, 20(%rbx)
	jmp	LBB0_3
LBB0_2:
	movq	_sun4i_gpadc_channels_no_temp@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movq	%rax, 8(%r15)
	movq	(%r12), %rax
	movq	%rax, (%r15)
LBB0_3:
	movl	(%r13), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_sun4i_gpadc_temp_data_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	16(%rbx), %r8
	leaq	12(%rbx), %r9
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	callq	_sun4i_irq_init
	testl	%eax, %eax
	js	LBB0_10
LBB0_5:
	movq	_sun4i_gpadc_fifo_data_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	8(%rbx), %r8
	addq	$4, %rbx
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %r9
	callq	_sun4i_irq_init
	testl	%eax, %eax
	js	LBB0_10
## %bb.6:
	movl	(%r13), %edi
	callq	_IS_ENABLED
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	_sun4i_gpadc_hwmon_maps@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_iio_map_array_register
	testl	%eax, %eax
	jns	LBB0_11
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	%ebx, %r12d
	jmp	LBB0_11
LBB0_10:
	movl	%eax, %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sun4i_gpadc_channels,8,3       ## @sun4i_gpadc_channels
	.comm	_CONFIG_THERMAL_OF,4,2          ## @CONFIG_THERMAL_OF
	.comm	_sun4i_gpadc_channels_no_temp,8,3 ## @sun4i_gpadc_channels_no_temp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TEMP_DATA_PENDING"

	.comm	_sun4i_gpadc_temp_data_irq_handler,4,2 ## @sun4i_gpadc_temp_data_irq_handler
L_.str.1:                               ## @.str.1
	.asciz	"temp_data"

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

	.comm	_sun4i_gpadc_fifo_data_irq_handler,4,2 ## @sun4i_gpadc_fifo_data_irq_handler
L_.str.3:                               ## @.str.3
	.asciz	"fifo_data"

	.comm	_sun4i_gpadc_hwmon_maps,4,2     ## @sun4i_gpadc_hwmon_maps
L_.str.4:                               ## @.str.4
	.asciz	"failed to register iio map array\n"

	.no_dead_strip	_sun4i_gpadc_probe_mfd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_gpadc_probe_mfd
_sun4i_gpadc_probe_mfd:                 ; @sun4i_gpadc_probe_mfd
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_iio_priv
	mov	x21, x0
	ldr	w0, [x19]
	bl	_dev_get_drvdata
	str	wzr, [x21]
	ldr	w8, [x0]
	str	w8, [x21, #32]
Lloh0:
	adrp	x22, _sun4i_gpadc_channels@GOTPAGE
Lloh1:
	ldr	x22, [x22, _sun4i_gpadc_channels@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	ldr	x8, [x22]
	stp	x8, x0, [x20]
	mov	x0, x19
	bl	_platform_get_device_id
	ldr	x8, [x0]
	str	x8, [x21, #24]
Lloh2:
	adrp	x23, _CONFIG_THERMAL_OF@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CONFIG_THERMAL_OF@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_IS_ENABLED
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	str	w8, [x21, #20]
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x22, _sun4i_gpadc_channels_no_temp@GOTPAGE
Lloh5:
	ldr	x22, [x22, _sun4i_gpadc_channels_no_temp@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	ldr	x8, [x22]
	stp	x8, x0, [x20]
LBB0_3:
	ldr	w0, [x23]
	bl	_IS_ENABLED
	cbz	x0, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _sun4i_gpadc_temp_data_irq_handler@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sun4i_gpadc_temp_data_irq_handler@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x4, x21, #16
	add	x5, x21, #12
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_sun4i_irq_init
	tbnz	w0, #31, LBB0_9
LBB0_5:
Lloh13:
	adrp	x8, _sun4i_gpadc_fifo_data_irq_handler@GOTPAGE
Lloh14:
	ldr	x8, [x8, _sun4i_gpadc_fifo_data_irq_handler@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	add	x4, x21, #8
	add	x5, x21, #4
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh18:
	adrp	x3, l_.str.3@PAGE
Lloh19:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_sun4i_irq_init
	tbnz	w0, #31, LBB0_9
; %bb.6:
	ldr	w0, [x23]
	bl	_IS_ENABLED
	cbz	x0, LBB0_8
; %bb.7:
Lloh20:
	adrp	x8, _sun4i_gpadc_hwmon_maps@GOTPAGE
Lloh21:
	ldr	x8, [x8, _sun4i_gpadc_hwmon_maps@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_iio_map_array_register
	tbnz	w0, #31, LBB0_11
LBB0_8:
	mov	w22, #0
	b	LBB0_10
LBB0_9:
	mov	x22, x0
LBB0_10:
	mov	x0, x22
	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_11:
	mov	x22, x0
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_10
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_sun4i_gpadc_channels,8,3       ; @sun4i_gpadc_channels
	.comm	_CONFIG_THERMAL_OF,4,2          ; @CONFIG_THERMAL_OF
	.comm	_sun4i_gpadc_channels_no_temp,8,3 ; @sun4i_gpadc_channels_no_temp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TEMP_DATA_PENDING"

	.comm	_sun4i_gpadc_temp_data_irq_handler,4,2 ; @sun4i_gpadc_temp_data_irq_handler
l_.str.1:                               ; @.str.1
	.asciz	"temp_data"

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

	.comm	_sun4i_gpadc_fifo_data_irq_handler,4,2 ; @sun4i_gpadc_fifo_data_irq_handler
l_.str.3:                               ; @.str.3
	.asciz	"fifo_data"

	.comm	_sun4i_gpadc_hwmon_maps,4,2     ; @sun4i_gpadc_hwmon_maps
l_.str.4:                               ; @.str.4
	.asciz	"failed to register iio map array\n"

	.no_dead_strip	_sun4i_gpadc_probe_mfd
.subsections_via_symbols
