	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpcap_adc_probe
_cpcap_adc_probe:                       ## @cpcap_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_cpcap_adc_id_table@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_of_match_ptr
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.2:
	movq	%r12, %rdi
	movl	$40, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	%rax, 32(%r15)
	movq	%r12, 16(%r15)
	leaq	28(%r15), %rdi
	callq	_mutex_init
	leaq	24(%r15), %rdi
	callq	_init_waitqueue_head
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movq	_INDIO_BUFFER_SOFTWARE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	movq	%r12, 40(%r14)
	movl	4(%r12), %eax
	movl	%eax, 32(%r14)
	movq	_cpcap_adc_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 24(%r14)
	callq	_ARRAY_SIZE
	movl	%eax, 20(%r14)
	movq	%r12, %rdi
	callq	_dev_name
	movl	%eax, 16(%r14)
	movq	_cpcap_adc_info@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	movl	(%r12), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_dev_get_regmap
	movl	%eax, 12(%r15)
	testl	%eax, %eax
	je	LBB0_11
## %bb.4:
	movq	16(%r15), %rdi
	movq	%r15, %rdx
	addq	$8, %rdx
	movl	%eax, %esi
	callq	_cpcap_get_vendor
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.5:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_platform_get_irq_byname
	movq	%rax, (%r15)
	testq	%rax, %rax
	js	LBB0_15
## %bb.6:
	movq	_cpcap_adc_irq_thread@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_IRQF_TRIGGER_NONE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	%r14, (%rsp)
	leaq	L_.str.3(%rip), %r9
	movq	%r12, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_16
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_11:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_13:
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_16:
	movq	%r15, %rdi
	callq	_cpcap_adc_calibrate
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.17:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	movq	%r12, %rdi
	movq	%r14, %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_iio_device_register       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cpcap_adc_id_table,4,2         ## @cpcap_adc_id_table
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no configuration data found\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"failed to allocate iio device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_INDIO_BUFFER_SOFTWARE,4,2      ## @INDIO_BUFFER_SOFTWARE
	.comm	_cpcap_adc_channels,4,2         ## @cpcap_adc_channels
	.comm	_cpcap_adc_info,4,2             ## @cpcap_adc_info
L_.str.2:                               ## @.str.2
	.asciz	"adcdone"

	.comm	_cpcap_adc_irq_thread,4,2       ## @cpcap_adc_irq_thread
	.comm	_IRQF_TRIGGER_NONE,4,2          ## @IRQF_TRIGGER_NONE
L_.str.3:                               ## @.str.3
	.asciz	"cpcap-adc"

L_.str.4:                               ## @.str.4
	.asciz	"could not get irq: %i\n"

L_.str.5:                               ## @.str.5
	.asciz	"CPCAP ADC device probed\n"

	.no_dead_strip	_cpcap_adc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpcap_adc_probe
_cpcap_adc_probe:                       ; @cpcap_adc_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
Lloh0:
	adrp	x8, _cpcap_adc_id_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpcap_adc_id_table@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_of_match_ptr
	mov	x1, x19
	bl	_of_match_device
	cbz	x0, LBB0_8
; %bb.1:
	mov	x22, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.2:
	mov	x0, x19
	mov	w1, #40
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_11
; %bb.3:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	ldr	x8, [x22]
	str	x8, [x0, #32]
	str	x19, [x0, #16]
	add	x0, x0, #28
	bl	_mutex_init
	add	x0, x21, #24
	bl	_init_waitqueue_head
Lloh3:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _INDIO_BUFFER_SOFTWARE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _INDIO_BUFFER_SOFTWARE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
	str	x19, [x20, #40]
	ldr	w8, [x19, #4]
	str	w8, [x20, #32]
Lloh9:
	adrp	x8, _cpcap_adc_channels@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cpcap_adc_channels@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	str	w0, [x20, #24]
	bl	_ARRAY_SIZE
	str	w0, [x20, #20]
	mov	x0, x19
	bl	_dev_name
	str	w0, [x20, #16]
Lloh12:
	adrp	x8, _cpcap_adc_info@GOTPAGE
Lloh13:
	ldr	x8, [x8, _cpcap_adc_info@GOTPAGEOFF]
	str	x8, [x20, #8]
	ldr	w0, [x19]
	mov	x1, #0
	bl	_dev_get_regmap
	str	w0, [x21, #12]
	cbz	w0, LBB0_10
; %bb.4:
	mov	x1, x0
	ldr	x0, [x21, #16]
	add	x2, x21, #8
	bl	_cpcap_get_vendor
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_platform_get_irq_byname
	str	x0, [x21]
	tbnz	x0, #63, LBB0_10
; %bb.6:
	mov	x1, x0
Lloh16:
	adrp	x8, _cpcap_adc_irq_thread@GOTPAGE
Lloh17:
	ldr	x8, [x8, _cpcap_adc_irq_thread@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
Lloh19:
	adrp	x8, _IRQF_TRIGGER_NONE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IRQF_TRIGGER_NONE@GOTPAGEOFF]
Lloh21:
	ldr	w4, [x8]
Lloh22:
	adrp	x5, l_.str.3@PAGE
Lloh23:
	add	x5, x5, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_14
; %bb.7:
	mov	x22, x0
	str	x22, [sp]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_13
LBB0_8:
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_10:
Lloh30:
	adrp	x8, _ENODEV@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_13:
	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
	add	sp, sp, #64
	ret
LBB0_14:
	mov	x0, x21
	bl	_cpcap_adc_calibrate
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.15:
Lloh36:
	adrp	x1, l_.str.5@PAGE
Lloh37:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x19
	mov	x1, x20
	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
	b	_devm_iio_device_register
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_cpcap_adc_id_table,4,2         ; @cpcap_adc_id_table
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no configuration data found\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"failed to allocate iio device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_INDIO_BUFFER_SOFTWARE,4,2      ; @INDIO_BUFFER_SOFTWARE
	.comm	_cpcap_adc_channels,4,2         ; @cpcap_adc_channels
	.comm	_cpcap_adc_info,4,2             ; @cpcap_adc_info
l_.str.2:                               ; @.str.2
	.asciz	"adcdone"

	.comm	_cpcap_adc_irq_thread,4,2       ; @cpcap_adc_irq_thread
	.comm	_IRQF_TRIGGER_NONE,4,2          ; @IRQF_TRIGGER_NONE
l_.str.3:                               ; @.str.3
	.asciz	"cpcap-adc"

l_.str.4:                               ; @.str.4
	.asciz	"could not get irq: %i\n"

l_.str.5:                               ; @.str.5
	.asciz	"CPCAP ADC device probed\n"

	.no_dead_strip	_cpcap_adc_probe
.subsections_via_symbols
