	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxs_lradc_read_ts_pressure
_mxs_lradc_read_ts_pressure:            ## @mxs_lradc_read_ts_pressure
	.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
	movl	%edx, %ebx
	movq	%rdi, %r12
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %edi
	callq	_LRADC_CTRL1_LRADC_IRQ
	movl	%eax, %r13d
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_LRADC_CTRL1_LRADC_IRQ
	movl	%eax, %ebx
	orl	%r13d, %ebx
	movq	_LRADC_CTRL1@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	8(%r12), %rdi
	callq	_readl
	notl	%eax
	testl	%eax, %ebx
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	8(%r12), %rdi
	callq	_readl
	movl	%eax, %r14d
	andl	%ebx, %r14d
	movl	(%r12), %edi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_dev_dbg
	cmpl	%ebx, %r14d
	jne	LBB0_2
LBB0_3:
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_mxs_lradc_ts_read_raw_channel
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_mxs_lradc_ts_read_raw_channel
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %esi
	movq	_LRADC_RESOLUTION@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %ebx
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_dbg
	jmp	LBB0_6
LBB0_4:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
	movq	_LRADC_RESOLUTION@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	decb	%cl
	movl	$1, %ebx
	shll	%cl, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LRADC_CTRL1,8,3                ## @LRADC_CTRL1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"One channel is still busy: %X\n"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot calculate pressure\n"

	.comm	_LRADC_RESOLUTION,4,2           ## @LRADC_RESOLUTION
L_.str.2:                               ## @.str.2
	.asciz	"Pressure = %u\n"

	.no_dead_strip	_mxs_lradc_read_ts_pressure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxs_lradc_read_ts_pressure
_mxs_lradc_read_ts_pressure:            ; @mxs_lradc_read_ts_pressure
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_LRADC_CTRL1_LRADC_IRQ
	mov	x22, x0
	mov	x0, x20
	bl	_LRADC_CTRL1_LRADC_IRQ
	orr	w24, w0, w22
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x25, _LRADC_CTRL1@GOTPAGE
Lloh1:
	ldr	x25, [x25, _LRADC_CTRL1@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readl
	bics	wzr, w24, w0
	b.eq	LBB0_3
; %bb.1:
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readl
	and	w23, w0, w24
	ldr	w0, [x19]
	mov	x1, x22
	mov	x2, x23
	bl	_dev_dbg
	cmp	w23, w24
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x19
	mov	x1, x21
	bl	_mxs_lradc_ts_read_raw_channel
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_mxs_lradc_ts_read_raw_channel
	cbz	w0, LBB0_5
; %bb.4:
Lloh4:
	adrp	x8, _LRADC_RESOLUTION@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LRADC_RESOLUTION@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	lsl	w8, w21, w8
	udiv	w20, w8, w0
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	b	LBB0_6
LBB0_5:
	ldr	w0, [x19]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
Lloh11:
	adrp	x8, _LRADC_RESOLUTION@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LRADC_RESOLUTION@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	sub	w8, w8, #1
	mov	w9, #1
	lsl	w20, w9, w8
LBB0_6:
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LRADC_CTRL1,8,3                ; @LRADC_CTRL1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"One channel is still busy: %X\n"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot calculate pressure\n"

	.comm	_LRADC_RESOLUTION,4,2           ; @LRADC_RESOLUTION
l_.str.2:                               ; @.str.2
	.asciz	"Pressure = %u\n"

	.no_dead_strip	_mxs_lradc_read_ts_pressure
.subsections_via_symbols
