	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prom_devclose                  ## -- Begin function prom_devclose
	.p2align	4, 0x90
_prom_devclose:                         ## @prom_devclose
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	_prom_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_prom_vers@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.3:
	movq	_romvec@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	jmp	LBB0_4
LBB0_1:
	cmpl	$130, %eax
	jne	LBB0_5
## %bb.2:
	movq	_romvec@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addq	$8, %rcx
LBB0_4:
	movl	%ebx, %edi
	callq	*(%rcx)
LBB0_5:
	xorl	%eax, %eax
	callq	_restore_current
	movq	_prom_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_prom_lock,4,2                  ## @prom_lock
	.comm	_prom_vers,4,2                  ## @prom_vers
	.comm	_romvec,8,3                     ## @romvec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prom_devclose                  ; -- Begin function prom_devclose
	.p2align	2
_prom_devclose:                         ; @prom_devclose
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, _prom_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _prom_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x8, _prom_vers@GOTPAGE
Lloh3:
	ldr	x8, [x8, _prom_vers@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _romvec@GOTPAGE
Lloh6:
	ldr	x8, [x8, _romvec@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	b	LBB0_4
LBB0_2:
	cmp	w8, #130
	b.ne	LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _romvec@GOTPAGE
Lloh9:
	ldr	x8, [x8, _romvec@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x8, x8, #8
LBB0_4:
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
LBB0_5:
	bl	_restore_current
Lloh11:
	adrp	x0, _prom_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _prom_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_prom_lock,4,2                  ; @prom_lock
	.comm	_prom_vers,4,2                  ; @prom_vers
	.comm	_romvec,8,3                     ; @romvec
.subsections_via_symbols
