	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpc32xx_adc_probe
_lpc32xx_adc_probe:                     ## @lpc32xx_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, %r13
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movl	(%rbx), %r12d
	movq	%rbx, %rdi
	callq	_resource_size
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_devm_ioremap
	movl	%eax, 12(%r15)
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 8(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movl	8(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
LBB0_6:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%r12d, %r12d
LBB0_10:
	subl	(%rax), %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	testl	%eax, %eax
	jle	LBB0_6
## %bb.13:
	movl	%eax, %ebx
	movq	_lpc32xx_adc_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LPC32XXAD_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	movq	%r15, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	js	LBB0_16
## %bb.14:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_regulator_get
	movl	%eax, 4(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movq	_lpc32xx_adc_iio_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_18
LBB0_16:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_11
LBB0_17:
	movq	_lpc32xx_adc_iio_scale_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
LBB0_18:
	movq	_LPC32XXAD_NAME@GOTPCREL(%rip), %r12
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r15, %rdi
	callq	_init_completion
	movl	(%r12), %eax
	movl	%eax, 24(%r14)
	movq	%r13, 16(%r14)
	movq	_lpc32xx_adc_iio_info@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_lpc32xx_adc_iio_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARRAY_SIZE
	movl	%eax, (%r14)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_devm_iio_device_register
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.19:
	leaq	L_.str.6(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get platform I/O memory\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"failed mapping memory\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.2:                               ## @.str.2
	.asciz	"failed getting clock\n"

	.comm	_lpc32xx_adc_isr,4,2            ## @lpc32xx_adc_isr
	.comm	_LPC32XXAD_NAME,4,2             ## @LPC32XXAD_NAME
L_.str.3:                               ## @.str.3
	.asciz	"failed requesting interrupt\n"

L_.str.4:                               ## @.str.4
	.asciz	"vref"

	.comm	_lpc32xx_adc_iio_channels,4,2   ## @lpc32xx_adc_iio_channels
L_.str.5:                               ## @.str.5
	.asciz	"Missing vref regulator: No scaling available\n"

	.comm	_lpc32xx_adc_iio_scale_channels,4,2 ## @lpc32xx_adc_iio_scale_channels
	.comm	_lpc32xx_adc_iio_info,4,2       ## @lpc32xx_adc_iio_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
L_.str.6:                               ## @.str.6
	.asciz	"LPC32XX ADC driver loaded, IRQ %d\n"

	.no_dead_strip	_lpc32xx_adc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpc32xx_adc_probe
_lpc32xx_adc_probe:                     ; @lpc32xx_adc_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	mov	x0, x19
	mov	w1, #16
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	ldr	w23, [x22]
	mov	x0, x22
	bl	_resource_size
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_devm_ioremap
	str	w0, [x21, #12]
	cbz	w0, LBB0_8
; %bb.3:
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x21, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.4:
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x21, #8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_5:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_6:
Lloh7:
	adrp	x8, _ENXIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_10:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	cmp	w0, #0
	b.le	LBB0_6
; %bb.12:
	mov	x22, x0
Lloh15:
	adrp	x8, _lpc32xx_adc_isr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _lpc32xx_adc_isr@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x24, _LPC32XXAD_NAME@GOTPAGE
Lloh19:
	ldr	x24, [x24, _LPC32XXAD_NAME@GOTPAGEOFF]
	ldr	w4, [x24]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	mov	x5, x21
	bl	_devm_request_irq
	tbnz	w0, #31, LBB0_15
; %bb.13:
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	w0, [x21, #4]
	bl	_IS_ERR
Lloh22:
	adrp	x23, _lpc32xx_adc_iio_channels@GOTPAGE
Lloh23:
	ldr	x23, [x23, _lpc32xx_adc_iio_channels@GOTPAGEOFF]
	cbz	x0, LBB0_16
; %bb.14:
	ldr	w8, [x23]
	str	w8, [x20, #28]
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_17
LBB0_15:
	mov	x23, x0
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_10
LBB0_16:
Lloh28:
	adrp	x8, _lpc32xx_adc_iio_scale_channels@GOTPAGE
Lloh29:
	ldr	x8, [x8, _lpc32xx_adc_iio_scale_channels@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x20, #28]
LBB0_17:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x21
	bl	_init_completion
	ldr	w8, [x24]
	str	w8, [x20, #24]
Lloh31:
	adrp	x8, _lpc32xx_adc_iio_info@GOTPAGE
Lloh32:
	ldr	x8, [x8, _lpc32xx_adc_iio_info@GOTPAGEOFF]
	stp	x8, x19, [x20, #8]
Lloh33:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	ldr	w0, [x23]
	bl	_ARRAY_SIZE
	str	w0, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_devm_iio_device_register
	mov	x23, x0
	cbnz	w0, LBB0_10
; %bb.18:
	str	x22, [sp]
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get platform I/O memory\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"failed mapping memory\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.2:                               ; @.str.2
	.asciz	"failed getting clock\n"

	.comm	_lpc32xx_adc_isr,4,2            ; @lpc32xx_adc_isr
	.comm	_LPC32XXAD_NAME,4,2             ; @LPC32XXAD_NAME
l_.str.3:                               ; @.str.3
	.asciz	"failed requesting interrupt\n"

l_.str.4:                               ; @.str.4
	.asciz	"vref"

	.comm	_lpc32xx_adc_iio_channels,4,2   ; @lpc32xx_adc_iio_channels
l_.str.5:                               ; @.str.5
	.asciz	"Missing vref regulator: No scaling available\n"

	.comm	_lpc32xx_adc_iio_scale_channels,4,2 ; @lpc32xx_adc_iio_scale_channels
	.comm	_lpc32xx_adc_iio_info,4,2       ; @lpc32xx_adc_iio_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
l_.str.6:                               ; @.str.6
	.asciz	"LPC32XX ADC driver loaded, IRQ %d\n"

	.no_dead_strip	_lpc32xx_adc_probe
.subsections_via_symbols
