	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gptupdate
_gptupdate:                             ## @gptupdate
	.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	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_DEV_BSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	cltd
	idivl	(%r13)
	movl	%eax, %esi
	movq	_curent@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%esi
	movl	%eax, %ebx
	imull	%eax, %esi
	movslq	%esi, %rax
	leaq	(%rax,%rax,4), %rax
	leaq	(%r12,%rax,8), %rdi
	movq	_secbuf@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%ecx, %edx
	callq	_bcopy
	addl	32(%r13), %ebx
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	$1, %ecx
	callq	_drvwrite
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	movl	(%r13), %esi
	imull	4(%r13), %esi
	movq	%r12, %rdi
	callq	_crc32
	movq	%rax, 24(%r13)
	movq	$0, 16(%r13)
	movl	8(%r13), %esi
	movq	%r13, %rdi
	callq	_crc32
	movq	%rax, 16(%r13)
	movl	(%r14), %edi
	movq	_DEV_BSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bzero
	movl	(%r14), %esi
	movl	8(%r13), %edx
	movq	%r13, %rdi
	callq	_bcopy
	movl	(%r14), %esi
	movl	12(%r13), %edx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_drvwrite
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	movq	_BOOTPROG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_5:
	addq	$8, %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	_curent,4,2                     ## @curent
	.comm	_secbuf,4,2                     ## @secbuf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: unable to update %s GPT partition table\n"

	.comm	_BOOTPROG,8,3                   ## @BOOTPROG
L_.str.1:                               ## @.str.1
	.asciz	"%s: unable to update %s GPT header\n"

	.no_dead_strip	_gptupdate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gptupdate
_gptupdate:                             ; @gptupdate
	.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	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _DEV_BSIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DEV_BSIZE@GOTPAGEOFF]
	ldr	w2, [x24]
	ldr	w8, [x21]
	sdiv	w8, w2, w8
Lloh2:
	adrp	x9, _curent@GOTPAGE
Lloh3:
	ldr	x9, [x9, _curent@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	sdiv	w25, w9, w8
	mul	w8, w25, w8
	mov	w9, #40
	smaddl	x0, w8, w9, x3
Lloh5:
	adrp	x23, _secbuf@GOTPAGE
Lloh6:
	ldr	x23, [x23, _secbuf@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_bcopy
	ldr	w8, [x21, #32]
	add	w2, w25, w8
	ldr	w1, [x23]
	mov	x0, x20
	mov	w3, #1
	bl	_drvwrite
	cbz	x0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldp	w9, w8, [x21]
	mul	w1, w9, w8
	mov	x0, x22
	bl	_crc32
	stp	xzr, x0, [x21, #16]
	ldr	w1, [x21, #8]
	mov	x0, x21
	bl	_crc32
	str	x0, [x21, #16]
	ldr	w0, [x23]
	ldr	w1, [x24]
	bl	_bzero
	ldr	w1, [x23]
	ldr	w2, [x21, #8]
	mov	x0, x21
	bl	_bcopy
	ldr	w1, [x23]
	ldr	w2, [x21, #12]
	mov	x0, x20
	mov	w3, #1
	bl	_drvwrite
	cbz	x0, LBB0_5
; %bb.3:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
Lloh11:
	adrp	x8, _BOOTPROG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BOOTPROG@GOTPAGEOFF]
Lloh13:
	ldr	x1, [x8]
	mov	x2, x19
	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
	b	_printf
LBB0_5:
	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	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DEV_BSIZE,4,2                  ; @DEV_BSIZE
	.comm	_curent,4,2                     ; @curent
	.comm	_secbuf,4,2                     ; @secbuf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: unable to update %s GPT partition table\n"

	.comm	_BOOTPROG,8,3                   ; @BOOTPROG
l_.str.1:                               ; @.str.1
	.asciz	"%s: unable to update %s GPT header\n"

	.no_dead_strip	_gptupdate
.subsections_via_symbols
