	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gptread_table
_gptread_table:                         ## @gptread_table
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdx)
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %rcx
	movq	%rdi, %r12
	movq	_DEV_BSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	4(%r13)
	movl	%eax, %ebx
	movl	16(%r13), %r14d
	movq	_secbuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rcx, %rdi
	movl	%r14d, %edx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %ecx
	callq	_drvread
	leaq	L_.str(%rip), %rdi
	testq	%rax, %rax
	jne	LBB0_14
## %bb.3:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_secbuf@GOTPCREL(%rip), %r8
	movq	(%r8), %rax
	movslq	%r12d, %rcx
	incq	%rcx
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-4(%rax,%rsi,4), %edx
	movl	%edx, -4(%r15,%rcx,4)
	movslq	(%r13), %rdx
	incl	%r12d
	cmpq	%rdx, %rcx
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	incq	%rcx
	leaq	1(%rsi), %rdi
	cmpl	%ebx, %esi
	movq	%rdi, %rsi
	jl	LBB0_9
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %edx
	movq	_secbuf@GOTPCREL(%rip), %r8
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%edx, %r12d
	jge	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%r14d
	movq	(%r8), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	$1, %ecx
	callq	_drvread
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_14
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_12:
	imull	4(%r13), %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_crc32
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	8(%r13), %rcx
	je	LBB0_15
## %bb.13:
	leaq	L_.str.1(%rip), %rdi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_14:
	movq	_BOOTPROG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdx
	callq	_printf
	movl	$-1, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEV_BSIZE,4,2                  ## @DEV_BSIZE
	.comm	_secbuf,8,3                     ## @secbuf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: unable to read %s GPT partition table\n"

	.comm	_BOOTPROG,8,3                   ## @BOOTPROG
L_.str.1:                               ## @.str.1
	.asciz	"%s: %s GPT table checksum mismatch\n"

	.no_dead_strip	_gptread_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gptread_table
_gptread_table:                         ; @gptread_table
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x2]
	cbz	w8, LBB0_12
; %bb.1:
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _DEV_BSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEV_BSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w27, [x8]
	ldr	w28, [x2, #4]
	ldr	w23, [x2, #16]
Lloh3:
	adrp	x25, _secbuf@GOTPAGE
Lloh4:
	ldr	x25, [x25, _secbuf@GOTPAGEOFF]
	ldr	x1, [x25]
	mov	x0, x22
	mov	x2, x23
	mov	w3, #1
	bl	_drvread
	cbz	x0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x24, l_.str@PAGE
Lloh6:
	add	x24, x24, l_.str@PAGEOFF
LBB0_3:
Lloh7:
	adrp	x8, _BOOTPROG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BOOTPROG@GOTPAGEOFF]
Lloh9:
	ldr	x1, [x8]
	mov	x0, x24
	mov	x2, x19
	bl	_printf
	mov	w0, #-1
	b	LBB0_13
LBB0_4:
	mov	w26, #0
Lloh10:
	adrp	x24, l_.str@PAGE
Lloh11:
	add	x24, x24, l_.str@PAGEOFF
	sdiv	w27, w27, w28
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x20]
	cmp	w26, w9
	b.ge	LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w23, w23, #1
	ldr	x1, [x25]
	mov	x0, x22
	mov	x2, x23
	mov	w3, #1
	bl	_drvread
	cbnz	x0, LBB0_3
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	cmp	w27, #0
	b.le	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, #0
	ldr	x10, [x25]
	sxtw	x9, w26
	add	x11, x21, w26, sxtw #2
	add	x12, x9, #1
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x9, x8, #2
	ldr	w13, [x10, x9]
	str	w13, [x11, x9]
	ldrsw	x9, [x20]
	add	x13, x12, x8
	cmp	x13, x9
	add	x8, x8, #1
	ccmp	w8, w27, #0, lt
	b.lt	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	add	w26, w26, w8
	cmp	w26, w9
	b.lt	LBB0_6
LBB0_11:
	ldr	w8, [x20, #4]
	mul	w1, w8, w26
	mov	x0, x21
	bl	_crc32
	ldr	x8, [x20, #8]
	cmp	x0, x8
	b.ne	LBB0_14
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh12:
	adrp	x24, l_.str.1@PAGE
Lloh13:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_3
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DEV_BSIZE,4,2                  ; @DEV_BSIZE
	.comm	_secbuf,8,3                     ; @secbuf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: unable to read %s GPT partition table\n"

	.comm	_BOOTPROG,8,3                   ; @BOOTPROG
l_.str.1:                               ; @.str.1
	.asciz	"%s: %s GPT table checksum mismatch\n"

	.no_dead_strip	_gptread_table
.subsections_via_symbols
