	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_label
_read_label:                            ## @read_label
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_SUN_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	__PATH_DEV@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %r8
	callq	_snprintf
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_2:
	movl	%ebx, %edi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_read
	cltq
	cmpq	%r14, %rax
	movl	%ebx, %r14d
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_4:
	movq	%r13, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_sunlabel_dec
	movl	%eax, %r15d
	movq	_DIOCGMEDIASIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_mediasize@GOTPCREL(%rip), %r12
	movl	%r14d, %edi
	movq	%r12, %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_err
LBB0_7:
	movq	_DIOCGSECTORSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_sectorsize@GOTPCREL(%rip), %r13
	movl	%r14d, %edi
	movq	%r13, %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_12
LBB0_11:
	testl	%r15d, %r15d
	je	LBB0_22
LBB0_12:
	movq	%rbx, %rdi
	movl	$48, %esi
	callq	_bzero
	movq	_DIOCGFWSECTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movl	%r14d, %edi
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	$63, -56(%rbp)
LBB0_14:
	movq	_DIOCGFWHEADS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	movl	%r14d, %edi
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movl	(%r12), %eax
	movl	(%r13), %ecx
	imull	$64512, %ecx, %edx              ## imm = 0xFC00
	cmpl	%edx, %eax
	jle	LBB0_17
## %bb.18:
	imull	$1032192, %ecx, %ecx            ## imm = 0xFC000
	cmpl	%ecx, %eax
	jle	LBB0_19
## %bb.20:
	movl	$255, -52(%rbp)
	movl	$255, %r9d
	jmp	LBB0_21
LBB0_10:
	movl	$512, (%r13)                    ## imm = 0x200
	jmp	LBB0_22
LBB0_15:
	movl	-52(%rbp), %r9d
	jmp	LBB0_21
LBB0_17:
	movl	$1, -52(%rbp)
	movl	$1, %r9d
	jmp	LBB0_21
LBB0_19:
	movl	$16, -52(%rbp)
	movl	$16, %r9d
LBB0_21:
	movl	$3600, (%rbx)                   ## imm = 0xE10
	movl	(%r12), %eax
	movl	-56(%rbp), %r10d
	movl	%r9d, %esi
	imull	%r10d, %esi
	movl	(%r13), %ecx
	imull	%esi, %ecx
	cltd
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, 4(%rbx)
	movq	$0, 40(%rbx)
	movl	$1, 8(%rbx)
	leal	-2(%rax), %ecx
	movl	%ecx, 12(%rbx)
	movl	$2, 16(%rbx)
	movl	%r10d, 20(%rbx)
	movl	%r9d, 24(%rbx)
	movq	32(%rbx), %rax
	movq	_SUN_RAWPART@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	shlq	$4, %rdi
	movq	$0, 8(%rax,%rdi)
	imull	%ecx, %esi
	movq	(%rdx), %rdx
	shlq	$4, %rdx
	movl	%esi, (%rax,%rdx)
	movl	(%r12), %edx
	movl	28(%rbx), %edi
	leal	524288(%rdx), %eax
	addl	$1572863, %edx                  ## imm = 0x17FFFF
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$20, %edx
	subq	$8, %rsp
	leaq	L_.str.6(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$2, %r8d
	pushq	%r10
	callq	_sprintf
	addq	$16, %rsp
LBB0_22:
	movl	%r14d, %edi
	callq	_close
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_SUN_SIZE,4,2                   ## @SUN_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s"

	.comm	__PATH_DEV,8,3                  ## @_PATH_DEV
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.1:                               ## @.str.1
	.asciz	"open %s"

L_.str.2:                               ## @.str.2
	.asciz	"read"

	.comm	_DIOCGMEDIASIZE,4,2             ## @DIOCGMEDIASIZE
	.comm	_mediasize,4,2                  ## @mediasize
L_.str.3:                               ## @.str.3
	.asciz	"%s: ioctl(DIOCGMEDIASIZE) failed"

	.comm	_DIOCGSECTORSIZE,4,2            ## @DIOCGSECTORSIZE
	.comm	_sectorsize,4,2                 ## @sectorsize
L_.str.4:                               ## @.str.4
	.asciz	"%s: DIOCGSECTORSIZE failed"

	.comm	_DIOCGFWSECTORS,4,2             ## @DIOCGFWSECTORS
	.comm	_DIOCGFWHEADS,4,2               ## @DIOCGFWHEADS
	.comm	_SUN_RAWPART,8,3                ## @SUN_RAWPART
L_.str.6:                               ## @.str.6
	.asciz	"FreeBSD%jdM cyl %u alt %u hd %u sec %u"

	.no_dead_strip	_read_label
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_label
_read_label:                            ; @read_label
	.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
	sub	sp, sp, #16
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x9, x1
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
Lloh8:
	adrp	x8, _SUN_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SUN_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
	mov	x9, x23
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
Lloh13:
	adrp	x8, __PATH_DEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, __PATH_DEV@GOTPAGEOFF]
Lloh15:
	ldr	x3, [x8]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x4, x22
	bl	_snprintf
Lloh18:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_open
	mov	x20, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
	str	x24, [sp, #-16]!
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
	add	sp, sp, #16
LBB0_2:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	_read
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x23
	b.eq	LBB0_4
; %bb.3:
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	mov	x0, x21
	mov	x1, x19
	bl	_sunlabel_dec
	mov	x24, x0
Lloh25:
	adrp	x8, _DIOCGMEDIASIZE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DIOCGMEDIASIZE@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x21, _mediasize@GOTPAGE
Lloh29:
	ldr	x21, [x21, _mediasize@GOTPAGEOFF]
	mov	x0, x20
	mov	x2, x21
	bl	_ioctl
	cmp	x0, #0
	ccmp	w24, #0, #4, ne
	b.eq	LBB0_6
; %bb.5:
	str	x22, [sp, #-16]!
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
	add	sp, sp, #16
LBB0_6:
Lloh32:
	adrp	x8, _DIOCGSECTORSIZE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DIOCGSECTORSIZE@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x23, _sectorsize@GOTPAGE
Lloh36:
	ldr	x23, [x23, _sectorsize@GOTPAGEOFF]
	mov	x0, x20
	mov	x2, x23
	bl	_ioctl
	cbz	x0, LBB0_9
; %bb.7:
	cbz	w24, LBB0_16
; %bb.8:
	str	x22, [sp, #-16]!
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_err
	add	sp, sp, #16
	b	LBB0_10
LBB0_9:
	cbz	w24, LBB0_22
LBB0_10:
	mov	x0, x19
	mov	w1, #48
	bl	_bzero
Lloh39:
	adrp	x8, _DIOCGFWSECTORS@GOTPAGE
Lloh40:
	ldr	x8, [x8, _DIOCGFWSECTORS@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	sub	x2, x29, #60
	mov	x0, x20
	bl	_ioctl
	cbz	x0, LBB0_12
; %bb.11:
	mov	w8, #63
	stur	w8, [x29, #-60]
LBB0_12:
Lloh42:
	adrp	x8, _DIOCGFWHEADS@GOTPAGE
Lloh43:
	ldr	x8, [x8, _DIOCGFWHEADS@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	sub	x2, x29, #64
	mov	x0, x20
	bl	_ioctl
	cbz	x0, LBB0_17
; %bb.13:
	ldr	w8, [x21]
	ldr	w9, [x23]
	mov	w10, #64512
	mul	w10, w9, w10
	cmp	w8, w10
	b.le	LBB0_18
; %bb.14:
	mov	w10, #1032192
	mul	w9, w9, w10
	cmp	w8, w9
	b.le	LBB0_19
; %bb.15:
	mov	w5, #255
	b	LBB0_20
LBB0_16:
	mov	w8, #512
	str	w8, [x23]
	b	LBB0_22
LBB0_17:
	ldur	w5, [x29, #-64]
	b	LBB0_21
LBB0_18:
	mov	w5, #1
	b	LBB0_20
LBB0_19:
	mov	w5, #16
LBB0_20:
	stur	w5, [x29, #-64]
LBB0_21:
	mov	w8, #3600
	str	w8, [x19]
	ldr	w8, [x21]
	ldur	w6, [x29, #-60]
	mul	w9, w5, w6
	ldr	w10, [x23]
	mul	w10, w9, w10
	sdiv	w8, w8, w10
	str	xzr, [x19, #40]
	mov	w10, #1
	stp	w8, w10, [x19, #4]
	sub	w3, w8, #2
	mov	w8, #2
	stp	w3, w8, [x19, #12]
	stp	w6, w5, [x19, #20]
	ldr	x8, [x19, #32]
Lloh45:
	adrp	x10, _SUN_RAWPART@GOTPAGE
Lloh46:
	ldr	x10, [x10, _SUN_RAWPART@GOTPAGEOFF]
	ldr	x11, [x10]
	add	x11, x8, x11, lsl #4
	str	xzr, [x11, #8]
	mul	w9, w9, w3
	ldr	x10, [x10]
	lsl	x10, x10, #4
	str	w9, [x8, x10]
	ldr	w8, [x21]
	ldr	w0, [x19, #28]
	add	w9, w8, #128, lsl #12           ; =524288
	mov	w10, #1572863
	add	w8, w8, w10
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w2, w8, #20
Lloh47:
	adrp	x1, l_.str.6@PAGE
Lloh48:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w4, #2
	bl	_sprintf
LBB0_22:
	mov	x0, x20
	bl	_close
	ldur	x8, [x29, #-56]
Lloh49:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh50:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	sub	sp, x29, #48
	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
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_SUN_SIZE,4,2                   ; @SUN_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s"

	.comm	__PATH_DEV,8,3                  ; @_PATH_DEV
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.1:                               ; @.str.1
	.asciz	"open %s"

l_.str.2:                               ; @.str.2
	.asciz	"read"

	.comm	_DIOCGMEDIASIZE,4,2             ; @DIOCGMEDIASIZE
	.comm	_mediasize,4,2                  ; @mediasize
l_.str.3:                               ; @.str.3
	.asciz	"%s: ioctl(DIOCGMEDIASIZE) failed"

	.comm	_DIOCGSECTORSIZE,4,2            ; @DIOCGSECTORSIZE
	.comm	_sectorsize,4,2                 ; @sectorsize
l_.str.4:                               ; @.str.4
	.asciz	"%s: DIOCGSECTORSIZE failed"

	.comm	_DIOCGFWSECTORS,4,2             ; @DIOCGFWSECTORS
	.comm	_DIOCGFWHEADS,4,2               ; @DIOCGFWHEADS
	.comm	_SUN_RAWPART,8,3                ; @SUN_RAWPART
l_.str.6:                               ; @.str.6
	.asciz	"FreeBSD%jdM cyl %u alt %u hd %u sec %u"

	.no_dead_strip	_read_label
.subsections_via_symbols
