	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9150_gpadc_probe
_da9150_gpadc_probe:                    ## @da9150_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r12, 16(%rbx)
	movq	%r15, 8(%rbx)
	leaq	4(%rbx), %rdi
	callq	_mutex_init
	movq	%rbx, %rdi
	callq	_init_completion
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_10
## %bb.3:
	movq	_da9150_gpadc_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, (%rsp)
	leaq	L_.str.1(%rip), %r9
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%ebx, %r12d
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_da9150_gpadc_default_maps@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_iio_map_array_register
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_7:
	movq	%r15, %rdi
	callq	_dev_name
	movl	%eax, 40(%r14)
	movq	%r15, 32(%r14)
	movl	(%r15), %eax
	movl	%eax, 24(%r14)
	movq	_da9150_gpadc_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_da9150_gpadc_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%r14)
	callq	_ARRAY_SIZE
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r14, %rdi
	callq	_iio_map_array_unregister
	jmp	LBB0_10
LBB0_8:
	xorl	%r12d, %r12d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate IIO device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"GPADC"

	.comm	_da9150_gpadc_irq,4,2           ## @da9150_gpadc_irq
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.2:                               ## @.str.2
	.asciz	"Failed to request IRQ %d: %d\n"

	.comm	_da9150_gpadc_default_maps,4,2  ## @da9150_gpadc_default_maps
L_.str.3:                               ## @.str.3
	.asciz	"Failed to register IIO maps: %d\n"

	.comm	_da9150_gpadc_info,4,2          ## @da9150_gpadc_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_da9150_gpadc_channels,4,2      ## @da9150_gpadc_channels
L_.str.4:                               ## @.str.4
	.asciz	"Failed to register IIO device: %d\n"

	.no_dead_strip	_da9150_gpadc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9150_gpadc_probe
_da9150_gpadc_probe:                    ; @da9150_gpadc_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_dev_get_drvdata
	mov	x21, x0
	mov	x0, x19
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x22, x0
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	stp	x19, x21, [x22, #8]
	add	x0, x22, #4
	bl	_mutex_init
	mov	x0, x22
	bl	_init_completion
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_platform_get_irq_byname
	mov	x21, x0
	tbnz	w0, #31, LBB0_10
; %bb.2:
Lloh2:
	adrp	x8, _da9150_gpadc_irq@GOTPAGE
Lloh3:
	ldr	x8, [x8, _da9150_gpadc_irq@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
Lloh8:
	adrp	x5, l_.str.1@PAGE
Lloh9:
	add	x5, x5, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	mov	x6, x22
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_5
; %bb.3:
	mov	x22, x0
	stp	x21, x22, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x21, x22
	b	LBB0_10
LBB0_4:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_5:
Lloh17:
	adrp	x8, _da9150_gpadc_default_maps@GOTPAGE
Lloh18:
	ldr	x8, [x8, _da9150_gpadc_default_maps@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_iio_map_array_register
	cbz	w0, LBB0_7
; %bb.6:
	mov	x21, x0
	str	x21, [sp]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_dev_name
	str	w0, [x20, #40]
	str	x19, [x20, #32]
	ldr	w8, [x19]
	str	w8, [x20, #24]
Lloh22:
	adrp	x8, _da9150_gpadc_info@GOTPAGE
Lloh23:
	ldr	x8, [x8, _da9150_gpadc_info@GOTPAGEOFF]
	str	x8, [x20, #16]
Lloh24:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _da9150_gpadc_channels@GOTPAGE
Lloh28:
	ldr	x9, [x9, _da9150_gpadc_channels@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #4]
	bl	_ARRAY_SIZE
	str	w0, [x20]
	mov	x0, x20
	bl	_iio_device_register
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.8:
	str	x21, [sp]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	bl	_iio_map_array_unregister
LBB0_9:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_10:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate IIO device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"GPADC"

	.comm	_da9150_gpadc_irq,4,2           ; @da9150_gpadc_irq
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.2:                               ; @.str.2
	.asciz	"Failed to request IRQ %d: %d\n"

	.comm	_da9150_gpadc_default_maps,4,2  ; @da9150_gpadc_default_maps
l_.str.3:                               ; @.str.3
	.asciz	"Failed to register IIO maps: %d\n"

	.comm	_da9150_gpadc_info,4,2          ; @da9150_gpadc_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_da9150_gpadc_channels,4,2      ; @da9150_gpadc_channels
l_.str.4:                               ; @.str.4
	.asciz	"Failed to register IIO device: %d\n"

	.no_dead_strip	_da9150_gpadc_probe
.subsections_via_symbols
