	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pack_bsdos
_pack_bsdos:                            ## @pack_bsdos
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	cmpl	$3, %edi
	je	LBB0_6
## %bb.1:
	cmpl	$2, %edi
	jne	LBB0_12
## %bb.2:
	movq	(%rbx), %rdi
	movq	8(%rbx), %rsi
	callq	_makedev_12_20
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_major_12_20
	cmpq	(%rbx), %rax
	je	LBB0_4
## %bb.3:
	movq	_iMajorError@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_4:
	movl	%r15d, %edi
	callq	_minor_12_20
	cmpq	8(%rbx), %rax
	je	LBB0_14
## %bb.5:
	movq	_iMinorError@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_13
LBB0_6:
	movq	(%rbx), %rdi
	movq	8(%rbx), %rsi
	movq	16(%rbx), %rdx
	callq	_makedev_12_12_8
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_major_12_12_8
	cmpq	(%rbx), %rax
	je	LBB0_8
## %bb.7:
	movq	_iMajorError@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_8:
	movl	%r15d, %edi
	callq	_unit_12_12_8
	cmpq	8(%rbx), %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r14)
LBB0_10:
	movl	%r15d, %edi
	callq	_subunit_12_12_8
	cmpq	16(%rbx), %rax
	je	LBB0_14
## %bb.11:
	leaq	L_.str.1(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_tooManyFields@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r15d, %r15d
LBB0_13:
	movq	%rax, (%r14)
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_iMajorError,8,3                ## @iMajorError
	.comm	_iMinorError,8,3                ## @iMinorError
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid unit number"

L_.str.1:                               ## @.str.1
	.asciz	"invalid subunit number"

	.comm	_tooManyFields,8,3              ## @tooManyFields
	.no_dead_strip	_pack_bsdos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pack_bsdos
_pack_bsdos:                            ; @pack_bsdos
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	cmp	w0, #3
	b.eq	LBB0_6
; %bb.1:
	cmp	w0, #2
	b.ne	LBB0_12
; %bb.2:
	ldp	x0, x1, [x21]
	bl	_makedev_12_20
	mov	x20, x0
	bl	_major_12_20
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _iMajorError@GOTPAGE
Lloh1:
	ldr	x8, [x8, _iMajorError@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_4:
	mov	x0, x20
	bl	_minor_12_20
	ldr	x8, [x21, #8]
	cmp	x0, x8
	b.eq	LBB0_15
; %bb.5:
Lloh3:
	adrp	x8, _iMinorError@GOTPAGE
Lloh4:
	ldr	x8, [x8, _iMinorError@GOTPAGEOFF]
	b	LBB0_13
LBB0_6:
	ldp	x0, x1, [x21]
	ldr	x2, [x21, #16]
	bl	_makedev_12_12_8
	mov	x20, x0
	bl	_major_12_12_8
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.7:
Lloh5:
	adrp	x8, _iMajorError@GOTPAGE
Lloh6:
	ldr	x8, [x8, _iMajorError@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_8:
	mov	x0, x20
	bl	_unit_12_12_8
	ldr	x8, [x21, #8]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.9:
Lloh8:
	adrp	x8, l_.str@PAGE
Lloh9:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x19]
LBB0_10:
	mov	x0, x20
	bl	_subunit_12_12_8
	ldr	x8, [x21, #16]
	cmp	x0, x8
	b.eq	LBB0_15
; %bb.11:
Lloh10:
	adrp	x8, l_.str.1@PAGE
Lloh11:
	add	x8, x8, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_12:
	mov	w20, #0
Lloh12:
	adrp	x8, _tooManyFields@GOTPAGE
Lloh13:
	ldr	x8, [x8, _tooManyFields@GOTPAGEOFF]
LBB0_13:
	ldr	x8, [x8]
LBB0_14:
	str	x8, [x19]
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_iMajorError,8,3                ; @iMajorError
	.comm	_iMinorError,8,3                ; @iMinorError
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid unit number"

l_.str.1:                               ; @.str.1
	.asciz	"invalid subunit number"

	.comm	_tooManyFields,8,3              ; @tooManyFields
	.no_dead_strip	_pack_bsdos
.subsections_via_symbols
