	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nubus_get_rsrc_str             ## -- Begin function nubus_get_rsrc_str
	.p2align	4, 0x90
_nubus_get_rsrc_str:                    ## @nubus_get_rsrc_str
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_nubus_dirptr
	movq	%rax, -48(%rbp)
	cmpl	$2, %r15d
	jb	LBB0_4
## %bb.1:
	leaq	-48(%rbp), %r13
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_nubus_get_rom
	testb	%al, %al
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	%al, (%rbx)
	incq	%rbx
	decl	%r15d
	cmpl	$1, %r15d
	ja	LBB0_2
	jmp	LBB0_5
LBB0_4:
	movq	%r14, %rbx
	testl	%r15d, %r15d
	je	LBB0_6
LBB0_5:
	movb	$0, (%rbx)
LBB0_6:
	subl	%r14d, %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nubus_get_rsrc_str             ; -- Begin function nubus_get_rsrc_str
	.p2align	2
_nubus_get_rsrc_str:                    ; @nubus_get_rsrc_str
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_nubus_dirptr
	str	x0, [sp, #8]
	mov	x22, x19
	cmp	w20, #2
	b.lo	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x21]
	add	x0, sp, #8
	mov	w1, #1
	bl	_nubus_get_rom
	cbz	w0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	strb	w0, [x22], #1
	sub	w20, w20, #1
	cmp	w20, #1
	b.hi	LBB0_1
	b	LBB0_4
LBB0_3:
	cbz	w20, LBB0_5
LBB0_4:
	strb	wzr, [x22]
LBB0_5:
	sub	w0, w22, w19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
