	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpc18xx_otp_read
_lpc18xx_otp_read:                      ## @lpc18xx_otp_read
	.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	%rdx, %r14
	shrq	$2, %rcx
	movl	%esi, %edx
	shrl	$2, %edx
	movq	_LPC18XX_OTP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%edx, %eax
	cmpl	%ecx, %eax
	cmovael	%ecx, %eax
	leal	(%rax,%rdx), %ecx
	cmpl	%ecx, %edx
	jae	LBB0_3
## %bb.1:
	movq	%rdi, %r15
	movl	%eax, %r12d
	movl	%esi, %r13d
	shrq	$2, %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rbx,%r13), %eax
	movq	_LPC18XX_OTP_WORD_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movslq	%eax, %rdi
	imulq	%rcx, %rdi
	addq	(%r15), %rdi
	callq	_readl
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	cmpl	%ebx, %r12d
	jne	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LPC18XX_OTP_SIZE,4,2           ## @LPC18XX_OTP_SIZE
	.comm	_LPC18XX_OTP_WORD_SIZE,4,2      ## @LPC18XX_OTP_WORD_SIZE
	.no_dead_strip	_lpc18xx_otp_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpc18xx_otp_read
_lpc18xx_otp_read:                      ; @lpc18xx_otp_read
	.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
	lsr	x8, x3, #2
	lsr	w21, w1, #2
Lloh0:
	adrp	x9, _LPC18XX_OTP_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LPC18XX_OTP_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sub	w9, w9, w21
	cmp	w9, w8
	csel	w22, w9, w8, lo
	add	w8, w22, w21
	cmp	w21, w8
	b.hs	LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x20, x0
Lloh3:
	adrp	x23, _LPC18XX_OTP_WORD_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _LPC18XX_OTP_WORD_SIZE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldrsw	x9, [x23]
	sxtw	x10, w21
	madd	x0, x9, x10, x8
	bl	_readl
	str	w0, [x19], #4
	add	w21, w21, #1
	subs	w22, w22, #1
	b.ne	LBB0_2
LBB0_3:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LPC18XX_OTP_SIZE,4,2           ; @LPC18XX_OTP_SIZE
	.comm	_LPC18XX_OTP_WORD_SIZE,4,2      ; @LPC18XX_OTP_WORD_SIZE
	.no_dead_strip	_lpc18xx_otp_read
.subsections_via_symbols
