	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc27xx_adc_probe
_sc27xx_adc_probe:                      ## @sc27xx_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, %r15
	movq	8(%rdi), %r13
	movl	$32, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r12
	movl	(%r15), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_dev_get_regmap
	movl	%eax, 28(%r12)
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	leaq	24(%r12), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_9
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, (%r12)
	testq	%rax, %rax
	js	LBB0_15
## %bb.11:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_of_hwspin_lock_get_id
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_16
## %bb.12:
	movl	%ebx, %edi
	callq	_hwspin_lock_request_specific
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:
	movq	_sc27xx_adc_free_hwlock@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_devm_add_action_or_reset
	testl	%eax, %eax
	je	LBB0_18
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_4
LBB0_15:
	movq	%rax, %rbx
	jmp	LBB0_9
LBB0_16:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_4
LBB0_17:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_18:
	movq	%r15, 8(%r12)
	movq	%r12, %rdi
	callq	_sc27xx_adc_enable
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_4
LBB0_20:
	movq	_sc27xx_adc_disable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_devm_add_action_or_reset
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_4
LBB0_22:
	movq	%r15, 24(%r14)
	movq	%r15, %rdi
	callq	_dev_name
	movl	%eax, 20(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_sc27xx_info@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	movq	_sc27xx_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%r14)
	callq	_ARRAY_SIZE
	movl	%eax, (%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_devm_iio_device_register
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_4
LBB0_24:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get ADC regmap\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"reg"

L_.str.2:                               ## @.str.2
	.asciz	"failed to get ADC base address\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to get hwspinlock id\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to request hwspinlock\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_sc27xx_adc_free_hwlock,4,2     ## @sc27xx_adc_free_hwlock
L_.str.5:                               ## @.str.5
	.asciz	"failed to add hwspinlock action\n"

L_.str.6:                               ## @.str.6
	.asciz	"failed to enable ADC module\n"

	.comm	_sc27xx_adc_disable,4,2         ## @sc27xx_adc_disable
L_.str.7:                               ## @.str.7
	.asciz	"failed to add ADC disable action\n"

	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_sc27xx_info,4,2                ## @sc27xx_info
	.comm	_sc27xx_channels,4,2            ## @sc27xx_channels
L_.str.8:                               ## @.str.8
	.asciz	"could not register iio (ADC)"

	.no_dead_strip	_sc27xx_adc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc27xx_adc_probe
_sc27xx_adc_probe:                      ; @sc27xx_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	x23, [x0, #8]
	mov	w1, #32
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x22, x0
	ldr	w0, [x19]
	mov	x1, #0
	bl	_dev_get_regmap
	str	w0, [x22, #28]
	cbz	w0, LBB0_6
; %bb.2:
	add	x2, x22, #24
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_of_property_read_u32
	cbz	w0, LBB0_9
; %bb.3:
	mov	x21, x0
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_8
LBB0_5:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	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
LBB0_9:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	str	x0, [x22]
	tbnz	x0, #63, LBB0_14
; %bb.10:
	mov	x0, x23
	mov	w1, #0
	bl	_of_hwspin_lock_get_id
	mov	x21, x0
	tbnz	w0, #31, LBB0_15
; %bb.11:
	mov	x0, x21
	bl	_hwspin_lock_request_specific
	str	x0, [x22, #16]
	cbz	x0, LBB0_16
; %bb.12:
	mov	x2, x0
Lloh10:
	adrp	x8, _sc27xx_adc_free_hwlock@GOTPAGE
Lloh11:
	ldr	x8, [x8, _sc27xx_adc_free_hwlock@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_add_action_or_reset
	cbz	w0, LBB0_17
; %bb.13:
	mov	x21, x0
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_14:
	mov	x21, x0
	b	LBB0_8
LBB0_15:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_16:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh19:
	adrp	x8, _ENXIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_17:
	str	x19, [x22, #8]
	mov	x0, x22
	bl	_sc27xx_adc_enable
	cbz	w0, LBB0_19
; %bb.18:
	mov	x21, x0
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_4
LBB0_19:
Lloh23:
	adrp	x8, _sc27xx_adc_disable@GOTPAGE
Lloh24:
	ldr	x8, [x8, _sc27xx_adc_disable@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_devm_add_action_or_reset
	cbz	w0, LBB0_21
; %bb.20:
	mov	x21, x0
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_4
LBB0_21:
	str	x19, [x20, #24]
	mov	x0, x19
	bl	_dev_name
Lloh28:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _sc27xx_info@GOTPAGE
Lloh32:
	ldr	x9, [x9, _sc27xx_info@GOTPAGEOFF]
	stp	w8, w0, [x20, #16]
	str	x9, [x20, #8]
Lloh33:
	adrp	x8, _sc27xx_channels@GOTPAGE
Lloh34:
	ldr	x8, [x8, _sc27xx_channels@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	str	w0, [x20, #4]
	bl	_ARRAY_SIZE
	str	w0, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_devm_iio_device_register
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.22:
Lloh36:
	adrp	x1, l_.str.8@PAGE
Lloh37:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get ADC regmap\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"reg"

l_.str.2:                               ; @.str.2
	.asciz	"failed to get ADC base address\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to get hwspinlock id\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to request hwspinlock\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_sc27xx_adc_free_hwlock,4,2     ; @sc27xx_adc_free_hwlock
l_.str.5:                               ; @.str.5
	.asciz	"failed to add hwspinlock action\n"

l_.str.6:                               ; @.str.6
	.asciz	"failed to enable ADC module\n"

	.comm	_sc27xx_adc_disable,4,2         ; @sc27xx_adc_disable
l_.str.7:                               ; @.str.7
	.asciz	"failed to add ADC disable action\n"

	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_sc27xx_info,4,2                ; @sc27xx_info
	.comm	_sc27xx_channels,4,2            ; @sc27xx_channels
l_.str.8:                               ; @.str.8
	.asciz	"could not register iio (ADC)"

	.no_dead_strip	_sc27xx_adc_probe
.subsections_via_symbols
