	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ofw_parsedev
_ofw_parsedev:                          ## @ofw_parsedev
	.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	$360, %rsp                      ## imm = 0x168
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -392(%rbp)                ## 8-byte Spill
	movq	%rdi, -384(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, -376(%rbp)                ## 8-byte Spill
	cmpb	$0, (%rsi)
	je	LBB0_16
## %bb.1:
	leaq	-304(%rbp), %r14
	leaq	-368(%rbp), %r12
	movq	-376(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$0, (%r13)
	leaq	-304(%rbp), %r14
	je	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	leaq	1(%r13), %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_strlen
	addq	%r13, %rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movq	%rax, %rbx
	movq	-376(%rbp), %rsi                ## 8-byte Reload
	subq	%rsi, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_memcpy
	movslq	%ebx, %r15
	movb	$0, -304(%rbp,%r15)
	movq	%r14, %rdi
	callq	_OF_finddevice
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	movl	$64, %ecx
	callq	_OF_getprop
	cmpl	$-1, %eax
	jne	LBB0_7
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	movb	$0, -368(%rbp,%r15)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_devsw@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$8, %r14d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%r15), %ebx
	movl	%ebx, %edi
	callq	_strlen
	movl	%ebx, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=2
	movq	_devsw@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14), %r15
	addq	$8, %r14
	testq	%r15, %r15
	jne	LBB0_10
	jmp	LBB0_15
LBB0_11:
	movq	-392(%rbp), %rbx                ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.12:
	movq	%r13, (%rbx)
LBB0_13:
	movl	$16, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.17:
	movq	%rax, %r12
	movl	8(%rax), %edi
	leaq	-304(%rbp), %rsi
	callq	_strcpy
	movq	%r15, (%r12)
	movq	(%r15), %rax
	movq	_DEVT_ZFS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.18:
	movl	8(%r15), %edi
	callq	_strlen
	cltq
	movq	-376(%rbp), %rsi                ## 8-byte Reload
	addq	%rax, %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_zfs_parsedev
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_24
LBB0_16:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_24
LBB0_20:
	movq	-384(%rbp), %rax                ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	movq	%r12, (%rax)
	jmp	LBB0_23
LBB0_14:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_24
LBB0_21:
	movq	%r12, %rdi
	callq	_free
LBB0_23:
	xorl	%ebx, %ebx
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	movl	%ebx, %eax
	addq	$360, %rsp                      ## imm = 0x168
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device_type"

	.comm	_devsw,8,3                      ## @devsw
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DEVT_ZFS,8,3                   ## @DEVT_ZFS
L_str:                                  ## @str
	.asciz	"ofw_parsedev: malloc failed"

	.no_dead_strip	_ofw_parsedev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ofw_parsedev
_ofw_parsedev:                          ; @ofw_parsedev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #432
	.cfi_def_cfa_offset 432
	stp	x28, x27, [sp, #336]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #352]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #368]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #384]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #400]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #416]            ; 16-byte Folded Spill
	add	x29, sp, #416
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldrb	w8, [x1]
	cbz	w8, LBB0_18
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x25, sp, #64
Lloh3:
	adrp	x27, _devsw@GOTPAGE
Lloh4:
	ldr	x27, [x27, _devsw@GOTPAGEOFF]
	mov	x22, x1
Lloh5:
	adrp	x23, l_.str@PAGE
Lloh6:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x22]
	cbz	w8, LBB0_18
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	add	x0, x22, #1
	mov	w1, #47
	bl	_strchr
	cbnz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_strlen
	add	x0, x22, x0
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	sub	x24, x0, x21
	add	x0, sp, #64
	mov	x1, x21
	mov	x2, x24
	bl	_memcpy
	sxtw	x24, w24
	strb	wzr, [x25, x24]
	add	x0, sp, #64
	bl	_OF_finddevice
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, sp
	mov	x1, x23
	mov	w3, #64
	bl	_OF_getprop
	cmn	w0, #1
	b.ne	LBB0_8
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, sp
	add	x1, sp, #64
	mov	x2, x24
	bl	_memcpy
	mov	x8, sp
	strb	wzr, [x8, x24]
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x27]
	ldr	x28, [x8]
	cbz	x28, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w26, #8
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w24, [x28, #8]
	mov	x0, x24
	bl	_strlen
	mov	x2, x0
	mov	x1, sp
	mov	x0, x24
	bl	_strncmp
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x27]
	ldr	x28, [x8, x26]
	add	x26, x26, #8
	cbnz	x28, LBB0_10
	b	LBB0_2
LBB0_12:
	cbz	x20, LBB0_14
; %bb.13:
	str	x22, [x20]
LBB0_14:
	mov	w0, #16
	bl	_malloc
	cbz	x0, LBB0_21
; %bb.15:
	mov	x22, x0
	ldr	w0, [x0, #8]
	add	x1, sp, #64
	bl	_strcpy
	str	x28, [x22]
	ldr	x8, [x28]
Lloh7:
	adrp	x9, _DEVT_ZFS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DEVT_ZFS@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.16:
	ldr	w0, [x28, #8]
	bl	_strlen
	add	x1, x21, w0, sxtw
	mov	x0, x22
	mov	x2, x20
	bl	_zfs_parsedev
	cbz	w0, LBB0_19
; %bb.17:
	mov	x20, x0
	mov	x0, x22
	bl	_free
	b	LBB0_23
LBB0_18:
Lloh10:
	adrp	x8, _ENOENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
	b	LBB0_23
LBB0_19:
	cbz	x19, LBB0_22
; %bb.20:
	mov	w20, #0
	str	x22, [x19]
	b	LBB0_23
LBB0_21:
Lloh13:
	adrp	x0, l_str@PAGE
Lloh14:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	b	LBB0_23
LBB0_22:
	mov	x0, x22
	bl	_free
	mov	w20, #0
LBB0_23:
	ldur	x8, [x29, #-96]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	mov	x0, x20
	ldp	x29, x30, [sp, #416]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #400]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #384]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #368]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #352]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #336]            ; 16-byte Folded Reload
	add	sp, sp, #432
	ret
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device_type"

	.comm	_devsw,8,3                      ; @devsw
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DEVT_ZFS,8,3                   ; @DEVT_ZFS
l_str:                                  ; @str
	.asciz	"ofw_parsedev: malloc failed"

	.no_dead_strip	_ofw_parsedev
.subsections_via_symbols
