	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gptinit
_gptinit:                               ## @gptinit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_dmadat@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	_gdsk@GOTPCREL(%rip), %r14
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_gptread
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.3:
	movl	12(%r14), %edx
	movq	_freebsd_ufs_uuid@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_gptfind
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:
	movq	_dsk_meta@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_BOOTPROG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	movq	_BOOTPROG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	callq	_printf
	movl	$-1, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gdsk,16,3                      ## @gdsk
	.comm	_dmadat,8,3                     ## @dmadat
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: unable to load GPT\n"

	.comm	_BOOTPROG,8,3                   ## @BOOTPROG
	.comm	_freebsd_ufs_uuid,4,2           ## @freebsd_ufs_uuid
L_.str.1:                               ## @.str.1
	.asciz	"%s: no UFS partition was found\n"

	.comm	_dsk_meta,8,3                   ## @dsk_meta
	.comm	_curent,8,3                     ## @curent
	.comm	_gelipw,4,2                     ## @gelipw
	.comm	_gpttable,8,3                   ## @gpttable
	.comm	_vdev_read,4,2                  ## @vdev_read
	.no_dead_strip	_gptinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gptinit
_gptinit:                               ; @gptinit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _dmadat@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dmadat@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh3:
	adrp	x20, _gdsk@GOTPAGE
Lloh4:
	ldr	x20, [x20, _gdsk@GOTPAGEOFF]
	add	x19, x20, #8
	mov	x0, x19
	bl	_gptread
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	ldr	w2, [x20, #12]
Lloh5:
	adrp	x0, _freebsd_ufs_uuid@GOTPAGE
Lloh6:
	ldr	x0, [x0, _freebsd_ufs_uuid@GOTPAGEOFF]
	mov	x1, x19
	bl	_gptfind
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.2:
	mov	w0, #0
Lloh7:
	adrp	x8, _dsk_meta@GOTPAGE
Lloh8:
	ldr	x8, [x8, _dsk_meta@GOTPAGEOFF]
Lloh9:
	str	xzr, [x8]
	b	LBB0_6
LBB0_3:
Lloh10:
	adrp	x8, _BOOTPROG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BOOTPROG@GOTPAGEOFF]
Lloh12:
	ldr	x1, [x8]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _BOOTPROG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BOOTPROG@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_printf
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_gdsk,16,3                      ; @gdsk
	.comm	_dmadat,8,3                     ; @dmadat
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: unable to load GPT\n"

	.comm	_BOOTPROG,8,3                   ; @BOOTPROG
	.comm	_freebsd_ufs_uuid,4,2           ; @freebsd_ufs_uuid
l_.str.1:                               ; @.str.1
	.asciz	"%s: no UFS partition was found\n"

	.comm	_dsk_meta,8,3                   ; @dsk_meta
	.comm	_curent,8,3                     ; @curent
	.comm	_gelipw,4,2                     ; @gelipw
	.comm	_gpttable,8,3                   ; @gpttable
	.comm	_vdev_read,4,2                  ; @vdev_read
	.no_dead_strip	_gptinit
.subsections_via_symbols
