	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpc32xx_read_raw
_lpc32xx_read_raw:                      ## @lpc32xx_read_raw
	.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	%r8, %rbx
	movq	%rcx, %r13
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_iio_priv
	movq	%rax, %r15
	cmpq	$128, %rbx
	je	LBB0_4
## %bb.1:
	cmpq	$129, %rbx
	jne	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	8(%r15), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_8
LBB0_4:
	movl	4(%r15), %edi
	callq	_regulator_get_voltage
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	$10, (%r13)
	movq	_IIO_VAL_FRACTIONAL_LOG2@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_6:
	movq	_LPC32XXAD_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%r12), %ebx
	orl	(%rax), %ebx
	movq	_LPC32XXAD_REFp@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_LPC32XXAD_REFm@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	16(%r15), %edi
	callq	_LPC32XXAD_SELECT
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	___raw_writel
	movq	_LPC32XXAD_PDN_CTRL@GOTPCREL(%rip), %rax
	movq	_LPC32XXAD_STROBE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movl	16(%r15), %edi
	callq	_LPC32XXAD_CTRL
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	___raw_writel
	movq	%r15, %rdi
	addq	$12, %rdi
	callq	_wait_for_completion
	movl	8(%r15), %edi
	callq	_clk_disable_unprepare
	movl	(%r15), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LPC32XXAD_INTERNAL,4,2         ## @LPC32XXAD_INTERNAL
	.comm	_LPC32XXAD_REFp,4,2             ## @LPC32XXAD_REFp
	.comm	_LPC32XXAD_REFm,4,2             ## @LPC32XXAD_REFm
	.comm	_LPC32XXAD_PDN_CTRL,4,2         ## @LPC32XXAD_PDN_CTRL
	.comm	_LPC32XXAD_STROBE,4,2           ## @LPC32XXAD_STROBE
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ## @IIO_VAL_FRACTIONAL_LOG2
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_lpc32xx_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpc32xx_read_raw
_lpc32xx_read_raw:                      ; @lpc32xx_read_raw
	.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	x24, x4
	mov	x23, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	cmp	x24, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	x24, #129
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_mutex_lock
	ldr	w0, [x21, #8]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_6
; %bb.3:
	mov	x23, x0
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_8
LBB0_4:
	ldr	w0, [x21, #4]
	bl	_regulator_get_voltage
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	str	w8, [x19]
	mov	w8, #10
	str	w8, [x23]
Lloh0:
	adrp	x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_8
LBB0_6:
Lloh5:
	adrp	x8, _LPC32XXAD_INTERNAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LPC32XXAD_INTERNAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _LPC32XXAD_REFp@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LPC32XXAD_REFp@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _LPC32XXAD_REFm@GOTPAGE
Lloh12:
	ldr	x9, [x9, _LPC32XXAD_REFm@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w22, w8, w9
	ldr	w0, [x21, #16]
	bl	_LPC32XXAD_SELECT
	mov	x1, x0
	mov	x0, x22
	bl	___raw_writel
Lloh14:
	adrp	x8, _LPC32XXAD_PDN_CTRL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LPC32XXAD_PDN_CTRL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _LPC32XXAD_STROBE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _LPC32XXAD_STROBE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w22, w9, w8
	ldr	w0, [x21, #16]
	bl	_LPC32XXAD_CTRL
	mov	x1, x0
	mov	x0, x22
	bl	___raw_writel
	add	x0, x21, #12
	bl	_wait_for_completion
	ldr	w0, [x21, #8]
	bl	_clk_disable_unprepare
	ldr	w8, [x21]
	str	w8, [x19]
	mov	x0, x20
	bl	_mutex_unlock
Lloh20:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
LBB0_7:
	ldr	w23, [x8]
LBB0_8:
	mov	x0, x23
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LPC32XXAD_INTERNAL,4,2         ; @LPC32XXAD_INTERNAL
	.comm	_LPC32XXAD_REFp,4,2             ; @LPC32XXAD_REFp
	.comm	_LPC32XXAD_REFm,4,2             ; @LPC32XXAD_REFm
	.comm	_LPC32XXAD_PDN_CTRL,4,2         ; @LPC32XXAD_PDN_CTRL
	.comm	_LPC32XXAD_STROBE,4,2           ; @LPC32XXAD_STROBE
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ; @IIO_VAL_FRACTIONAL_LOG2
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_lpc32xx_read_raw
.subsections_via_symbols
