	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kboot_getdev                   ## -- Begin function kboot_getdev
	.p2align	4, 0x90
_kboot_getdev:                          ## @kboot_getdev
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	incq	%rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, %rbx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
LBB0_3:
	movq	_devsw@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax), %r12
	testq	%r12, %r12
	je	LBB0_15
## %bb.4:
	movl	$8, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %r14d
	movl	%r14d, %edi
	callq	_strlen
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15), %rax
	movq	(%rax,%r13), %r12
	addq	$8, %r13
	testq	%r12, %r12
	jne	LBB0_6
LBB0_15:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_14
LBB0_7:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:
	testq	%rax, %rax
	jne	LBB0_11
LBB0_9:
	testq	%r14, %r14
	je	LBB0_12
## %bb.10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$58, %esi
	callq	_strchr
	incq	%rax
LBB0_11:
	movq	%rax, (%r14)
LBB0_12:
	xorl	%r15d, %r15d
	testq	%r13, %r13
	je	LBB0_14
## %bb.13:
	movl	$24, %edi
	callq	_malloc
	movq	%rax, %r14
	movq	%r12, 16(%rax)
	movq	$0, 8(%rax)
	movq	%rbx, %rdi
	callq	_strdup
	movl	%eax, (%r14)
	movq	%r14, (%r13)
LBB0_14:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"currdev"

	.comm	_devsw,8,3                      ## @devsw
	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kboot_getdev                   ; -- Begin function kboot_getdev
	.p2align	2
_kboot_getdev:                          ; @kboot_getdev
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_2
; %bb.1:
	add	x25, x0, #1
	mov	x21, x22
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x21, x0
	mov	x25, x22
LBB0_3:
Lloh2:
	adrp	x26, _devsw@GOTPAGE
Lloh3:
	ldr	x26, [x26, _devsw@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	x24, [x8]
	cbz	x24, LBB0_7
; %bb.4:
	mov	w27, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x24]
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x23
	mov	x1, x21
	bl	_strncmp
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26]
	ldr	x24, [x8, x27]
	add	x27, x27, #8
	cbnz	x24, LBB0_5
LBB0_7:
Lloh4:
	adrp	x8, _ENOENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	b	LBB0_16
LBB0_8:
	cbz	x20, LBB0_10
; %bb.9:
	cbnz	x25, LBB0_12
LBB0_10:
	cbz	x20, LBB0_13
; %bb.11:
	mov	x0, x22
	mov	w1, #58
	bl	_strchr
	add	x25, x0, #1
LBB0_12:
	str	x25, [x20]
LBB0_13:
	cbz	x19, LBB0_15
; %bb.14:
	mov	w0, #24
	bl	_malloc
	mov	x20, x0
	stp	xzr, x24, [x0, #8]
	mov	x0, x21
	bl	_strdup
	mov	x8, x0
	mov	w0, #0
	str	w8, [x20]
	str	x20, [x19]
	b	LBB0_16
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"currdev"

	.comm	_devsw,8,3                      ; @devsw
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
