	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function berlin2_adc_probe
_berlin2_adc_probe:                     ## @berlin2_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, %r12
	movl	8(%rdi), %edi
	callq	_of_get_parent
	movq	%rax, %rbx
	movq	%r12, %rdi
	movl	$12, %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, %r14
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	%rbx, %rdi
	callq	_syscon_node_to_regmap
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_of_node_put
	movl	(%r14), %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.11:
	movl	(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	_berlin2_adc_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r12), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	movq	%r15, %r9
	callq	_devm_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	_berlin2_adc_tsen_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r12), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movl	%r13d, %esi
	xorl	%ecx, %ecx
	movq	%r15, %r9
	callq	_devm_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	leaq	8(%r14), %rdi
	callq	_init_waitqueue_head
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_mutex_init
	movq	%r12, 24(%r15)
	movq	%r12, %rdi
	callq	_dev_name
	movl	%eax, 20(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_berlin2_adc_info@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movq	_berlin2_adc_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, (%r15)
	movl	(%r14), %edi
	movq	_BERLIN2_SM_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_BERLIN2_SM_CTRL_ADC_POWER@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movq	%r15, %rdi
	callq	_iio_device_register
	movl	$0, %ebx
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r15d
	movl	(%r14), %edi
	movl	(%r12), %esi
	movl	(%r13), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movl	%r15d, %ebx
	jmp	LBB0_10
LBB0_5:
	movl	%r13d, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adc"

L_.str.1:                               ## @.str.1
	.asciz	"tsen"

	.comm	_berlin2_adc_irq,4,2            ## @berlin2_adc_irq
	.comm	_berlin2_adc_tsen_irq,4,2       ## @berlin2_adc_tsen_irq
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_berlin2_adc_info,4,2           ## @berlin2_adc_info
	.comm	_berlin2_adc_channels,4,2       ## @berlin2_adc_channels
	.comm	_BERLIN2_SM_CTRL,4,2            ## @BERLIN2_SM_CTRL
	.comm	_BERLIN2_SM_CTRL_ADC_POWER,4,2  ## @BERLIN2_SM_CTRL_ADC_POWER
	.no_dead_strip	_berlin2_adc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function berlin2_adc_probe
_berlin2_adc_probe:                     ; @berlin2_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	x21, x0
	ldr	w0, [x0, #8]
	bl	_of_get_parent
	mov	x22, x0
	mov	x0, x21
	mov	w1, #12
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x22
	bl	_syscon_node_to_regmap
	str	w0, [x20]
	mov	x0, x22
	bl	_of_node_put
	ldr	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_4:
	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_5:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_platform_get_irq_byname
	mov	x22, x0
	tbnz	w0, #31, LBB0_4
; %bb.6:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_platform_get_irq_byname
	mov	x23, x0
	tbnz	w0, #31, LBB0_11
; %bb.7:
Lloh7:
	adrp	x8, _berlin2_adc_irq@GOTPAGE
Lloh8:
	ldr	x8, [x8, _berlin2_adc_irq@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	ldr	x8, [x21]
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.8:
Lloh10:
	adrp	x8, _berlin2_adc_tsen_irq@GOTPAGE
Lloh11:
	ldr	x8, [x8, _berlin2_adc_tsen_irq@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	ldr	x8, [x21]
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x23
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.9:
	add	x0, x20, #8
	bl	_init_waitqueue_head
	add	x0, x20, #4
	bl	_mutex_init
	str	x21, [x19, #24]
	mov	x0, x21
	bl	_dev_name
Lloh13:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _berlin2_adc_info@GOTPAGE
Lloh17:
	ldr	x9, [x9, _berlin2_adc_info@GOTPAGEOFF]
	stp	w8, w0, [x19, #16]
	str	x9, [x19, #8]
Lloh18:
	adrp	x8, _berlin2_adc_channels@GOTPAGE
Lloh19:
	ldr	x8, [x8, _berlin2_adc_channels@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	str	w0, [x19, #4]
	bl	_ARRAY_SIZE
	str	w0, [x19]
	ldr	w0, [x20]
Lloh21:
	adrp	x21, _BERLIN2_SM_CTRL@GOTPAGE
Lloh22:
	ldr	x21, [x21, _BERLIN2_SM_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh23:
	adrp	x23, _BERLIN2_SM_CTRL_ADC_POWER@GOTPAGE
Lloh24:
	ldr	x23, [x23, _BERLIN2_SM_CTRL_ADC_POWER@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x3, x2
	bl	_regmap_update_bits
	mov	x0, x19
	bl	_iio_device_register
	mov	x22, x0
	cbz	w0, LBB0_4
; %bb.10:
	ldr	w0, [x20]
	ldr	w1, [x21]
	ldr	w2, [x23]
	mov	w3, #0
	bl	_regmap_update_bits
	b	LBB0_4
LBB0_11:
	mov	x22, x23
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adc"

l_.str.1:                               ; @.str.1
	.asciz	"tsen"

	.comm	_berlin2_adc_irq,4,2            ; @berlin2_adc_irq
	.comm	_berlin2_adc_tsen_irq,4,2       ; @berlin2_adc_tsen_irq
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_berlin2_adc_info,4,2           ; @berlin2_adc_info
	.comm	_berlin2_adc_channels,4,2       ; @berlin2_adc_channels
	.comm	_BERLIN2_SM_CTRL,4,2            ; @BERLIN2_SM_CTRL
	.comm	_BERLIN2_SM_CTRL_ADC_POWER,4,2  ; @BERLIN2_SM_CTRL_ADC_POWER
	.no_dead_strip	_berlin2_adc_probe
.subsections_via_symbols
