	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_dev
_init_dev:                              ## @init_dev
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_BSD_LABEL_BUFFER@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_devinfo@GOTPCREL(%rip), %r12
	movq	%rbx, (%r12)
	movq	___dmadat@GOTPCREL(%rip), %rax
	movq	_dmadat@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	$0, (%rbx)
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_fsread
	testl	%eax, %eax
	jns	LBB0_11
## %bb.1:
	movl	(%r15), %eax
	movq	_DEV_BSIZE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_dskread
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_11
## %bb.2:
	movq	(%r12), %rcx
	movq	8(%rcx), %rdx
	movq	(%rdx), %rdx
	movslq	(%rdx), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.3:
	movl	(%r15), %esi
	movl	%esi, %edi
	shrl	$31, %edi
	addl	%esi, %edi
	sarl	%edi
	cmpl	%edi, %edx
	jg	LBB0_6
## %bb.4:
	movq	(%r14,%rdx), %rsi
	movq	_BSD_MAGIC@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_6
## %bb.5:
	addq	%r14, %rdx
	cmpq	%rsi, 8(%rdx)
	je	LBB0_8
LBB0_6:
	movq	_BSD_LABEL_OFFSET@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_BSD_MAGIC@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpq	%rsi, (%r14,%rdx)
	jne	LBB0_11
## %bb.7:
	addq	%rdx, %r14
	movq	%r14, %rdx
LBB0_8:
	cmpq	%rsi, 8(%rdx)
	jne	LBB0_11
## %bb.9:
	movq	16(%rdx), %rdx
	movq	(%rdx), %rdx
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.10:
	movq	%rdx, (%rcx)
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_fsread
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BSD_LABEL_BUFFER,4,2           ## @BSD_LABEL_BUFFER
	.comm	_devinfo,8,3                    ## @devinfo
	.comm	___dmadat,4,2                   ## @__dmadat
	.comm	_dmadat,8,3                     ## @dmadat
	.comm	_DEV_BSIZE,4,2                  ## @DEV_BSIZE
	.comm	_BSD_MAGIC,8,3                  ## @BSD_MAGIC
	.comm	_BSD_LABEL_OFFSET,8,3           ## @BSD_LABEL_OFFSET
	.no_dead_strip	_init_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_dev
_init_dev:                              ; @init_dev
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x20, _BSD_LABEL_BUFFER@GOTPAGE
Lloh4:
	ldr	x20, [x20, _BSD_LABEL_BUFFER@GOTPAGEOFF]
	ldr	w8, [x20]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh7:
	adrp	x21, _devinfo@GOTPAGE
Lloh8:
	ldr	x21, [x21, _devinfo@GOTPAGEOFF]
	str	x0, [x21]
Lloh9:
	adrp	x8, _dmadat@GOTPAGE
Lloh10:
	ldr	x8, [x8, _dmadat@GOTPAGEOFF]
Lloh11:
	adrp	x9, ___dmadat@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___dmadat@GOTPAGEOFF]
Lloh13:
	str	x9, [x8]
	str	xzr, [x0]
	mov	w0, #0
	mov	x1, #0
	mov	w2, #0
	bl	_fsread
	tbz	w0, #31, LBB0_11
; %bb.1:
	ldr	w8, [x20]
Lloh14:
	adrp	x9, _DEV_BSIZE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DEV_BSIZE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	sdiv	w2, w8, w9
	mov	x0, x19
	mov	w1, #0
	bl	_dskread
	cbnz	x0, LBB0_10
; %bb.2:
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
	ldr	x9, [x9]
	ldrsw	x10, [x9]
Lloh17:
	adrp	x9, _BSD_MAGIC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BSD_MAGIC@GOTPAGEOFF]
	cbz	w10, LBB0_6
; %bb.3:
	ldr	w11, [x20]
	cmp	w11, #0
	cinc	w11, w11, lt
	cmp	w10, w11, asr #1
	b.gt	LBB0_6
; %bb.4:
	add	x10, x19, x10
	ldr	x11, [x10]
	ldr	x12, [x9]
	cmp	x11, x12
	b.ne	LBB0_6
; %bb.5:
	ldr	x12, [x10, #8]
	cmp	x12, x11
	b.eq	LBB0_7
LBB0_6:
Lloh19:
	adrp	x10, _BSD_LABEL_OFFSET@GOTPAGE
Lloh20:
	ldr	x10, [x10, _BSD_LABEL_OFFSET@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	add	x10, x19, x10
	ldr	x12, [x10]
	ldr	x11, [x9]
	cmp	x12, x11
	b.ne	LBB0_10
LBB0_7:
	ldr	x9, [x10, #8]
	cmp	x9, x11
	b.ne	LBB0_10
; %bb.8:
	ldr	x9, [x10, #16]
	ldr	x9, [x9]
	cbz	x9, LBB0_10
; %bb.9:
	str	x9, [x8]
	mov	w0, #0
	mov	x1, #0
	mov	w2, #0
	bl	_fsread
	b	LBB0_11
LBB0_10:
	mov	w0, #-1
LBB0_11:
	ldur	x8, [x29, #-40]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	sub	sp, x29, #32
	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
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_BSD_LABEL_BUFFER,4,2           ; @BSD_LABEL_BUFFER
	.comm	_devinfo,8,3                    ; @devinfo
	.comm	___dmadat,4,2                   ; @__dmadat
	.comm	_dmadat,8,3                     ; @dmadat
	.comm	_DEV_BSIZE,4,2                  ; @DEV_BSIZE
	.comm	_BSD_MAGIC,8,3                  ; @BSD_MAGIC
	.comm	_BSD_LABEL_OFFSET,8,3           ; @BSD_LABEL_OFFSET
	.no_dead_strip	_init_dev
.subsections_via_symbols
