	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcpio_rd                       ## -- Begin function bcpio_rd
	.p2align	4, 0x90
_bcpio_rd:                              ## @bcpio_rd
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movl	$48, %esi
	callq	_bcpio_id
	testq	%rax, %rax
	js	LBB0_13
## %bb.1:
	movq	$0, (%r14)
	movq	_swp_head@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	44(%r15), %edi
	je	LBB0_3
## %bb.2:
	callq	_RSHRT_EXT
	movq	%rax, 88(%r14)
	movl	40(%r15), %edi
	callq	_RSHRT_EXT
	movq	%rax, 80(%r14)
	movl	36(%r15), %edi
	callq	_RSHRT_EXT
	movl	%eax, 24(%r14)
	movl	32(%r15), %edi
	callq	_RSHRT_EXT
	movq	%rax, 72(%r14)
	movl	28(%r15), %edi
	callq	_RSHRT_EXT
	movq	%rax, 64(%r14)
	movl	24(%r15), %edi
	callq	_RSHRT_EXT
	movq	%rax, 56(%r14)
	movl	20(%r15), %edi
	callq	_RSHRT_EXT
	movq	%rax, 48(%r14)
	movl	16(%r15), %edi
	callq	_RSHRT_EXT
	movq	%rax, %rbx
	movl	%ebx, 28(%r14)
	shll	$16, %ebx
	movl	12(%r15), %edi
	callq	_RSHRT_EXT
	orl	%ebx, %eax
	movl	%eax, 28(%r14)
	movl	8(%r15), %edi
	callq	_RSHRT_EXT
	movq	%rax, %rbx
	movl	%ebx, 32(%r14)
	shll	$16, %ebx
	movl	4(%r15), %edi
	callq	_RSHRT_EXT
	orl	%ebx, %eax
	movl	%eax, 32(%r14)
	movl	(%r15), %edi
	callq	_RSHRT_EXT
	jmp	LBB0_4
LBB0_3:
	callq	_SHRT_EXT
	movq	%rax, 88(%r14)
	movl	40(%r15), %edi
	callq	_SHRT_EXT
	movq	%rax, 80(%r14)
	movl	36(%r15), %edi
	callq	_SHRT_EXT
	movl	%eax, 24(%r14)
	movl	32(%r15), %edi
	callq	_SHRT_EXT
	movq	%rax, 72(%r14)
	movl	28(%r15), %edi
	callq	_SHRT_EXT
	movq	%rax, 64(%r14)
	movl	24(%r15), %edi
	callq	_SHRT_EXT
	movq	%rax, 56(%r14)
	movl	20(%r15), %edi
	callq	_SHRT_EXT
	movq	%rax, 48(%r14)
	movl	16(%r15), %edi
	callq	_SHRT_EXT
	movq	%rax, %rbx
	movl	%ebx, 28(%r14)
	shll	$16, %ebx
	movl	12(%r15), %edi
	callq	_SHRT_EXT
	orl	%ebx, %eax
	movl	%eax, 28(%r14)
	movl	8(%r15), %edi
	callq	_SHRT_EXT
	movq	%rax, %rbx
	movl	%ebx, 32(%r14)
	shll	$16, %ebx
	movl	4(%r15), %edi
	callq	_SHRT_EXT
	orl	%ebx, %eax
	movl	%eax, 32(%r14)
	movl	(%r15), %edi
	callq	_SHRT_EXT
LBB0_4:
	movq	%rax, %rbx
	movl	28(%r14), %eax
	movl	%eax, 40(%r14)
	movl	%eax, 36(%r14)
	cmpl	$2, %ebx
	jl	LBB0_13
## %bb.5:
	leal	-1(%rbx), %eax
	movl	%eax, 8(%r14)
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_rd_nm
	testq	%rax, %rax
	js	LBB0_13
## %bb.6:
	addl	$48, %ebx
	movl	%ebx, %edi
	callq	_BCPIO_PAD
	movl	%eax, %edi
	callq	_rd_skip
	testq	%rax, %rax
	js	LBB0_13
## %bb.7:
	movq	_C_IFMT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	24(%r14), %eax
	movq	_C_ISLNK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.8:
	cmpl	$0, 32(%r14)
	je	LBB0_9
## %bb.11:
	movq	%r14, %rdi
	callq	_rd_ln_nm
	testq	%rax, %rax
	js	LBB0_13
## %bb.12:
	movl	32(%r14), %edi
	callq	_BCPIO_PAD
	movl	%eax, %edi
	callq	_rd_skip
	testq	%rax, %rax
	jns	LBB0_10
LBB0_13:
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	$0, 96(%r14)
	movq	16(%r14), %rax
	movb	$0, (%rax)
	movl	32(%r14), %edi
	callq	_BCPIO_PAD
	movq	%rax, (%r14)
LBB0_10:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_com_rd                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_swp_head,8,3                   ## @swp_head
	.comm	_C_IFMT,4,2                     ## @C_IFMT
	.comm	_C_ISLNK,4,2                    ## @C_ISLNK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcpio_rd                       ; -- Begin function bcpio_rd
	.p2align	2
_bcpio_rd:                              ; @bcpio_rd
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	mov	w1, #48
	bl	_bcpio_id
	tbnz	x0, #63, LBB0_11
; %bb.1:
	str	xzr, [x19]
Lloh0:
	adrp	x8, _swp_head@GOTPAGE
Lloh1:
	ldr	x8, [x8, _swp_head@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w0, [x20, #44]
	cbz	x8, LBB0_3
; %bb.2:
	bl	_RSHRT_EXT
	str	x0, [x19, #88]
	ldr	w0, [x20, #40]
	bl	_RSHRT_EXT
	str	x0, [x19, #80]
	ldr	w0, [x20, #36]
	bl	_RSHRT_EXT
	str	w0, [x19, #24]
	ldr	w0, [x20, #32]
	bl	_RSHRT_EXT
	str	x0, [x19, #72]
	ldr	w0, [x20, #28]
	bl	_RSHRT_EXT
	str	x0, [x19, #64]
	ldr	w0, [x20, #24]
	bl	_RSHRT_EXT
	str	x0, [x19, #56]
	ldr	w0, [x20, #20]
	bl	_RSHRT_EXT
	str	x0, [x19, #48]
	ldr	w0, [x20, #16]
	bl	_RSHRT_EXT
	mov	x21, x0
	str	w21, [x19, #28]
	ldr	w0, [x20, #12]
	bl	_RSHRT_EXT
	orr	w8, w0, w21, lsl #16
	str	w8, [x19, #28]
	ldr	w0, [x20, #8]
	bl	_RSHRT_EXT
	mov	x21, x0
	str	w21, [x19, #32]
	ldr	w0, [x20, #4]
	bl	_RSHRT_EXT
	orr	w8, w0, w21, lsl #16
	str	w8, [x19, #32]
	ldr	w0, [x20]
	bl	_RSHRT_EXT
	b	LBB0_4
LBB0_3:
	bl	_SHRT_EXT
	str	x0, [x19, #88]
	ldr	w0, [x20, #40]
	bl	_SHRT_EXT
	str	x0, [x19, #80]
	ldr	w0, [x20, #36]
	bl	_SHRT_EXT
	str	w0, [x19, #24]
	ldr	w0, [x20, #32]
	bl	_SHRT_EXT
	str	x0, [x19, #72]
	ldr	w0, [x20, #28]
	bl	_SHRT_EXT
	str	x0, [x19, #64]
	ldr	w0, [x20, #24]
	bl	_SHRT_EXT
	str	x0, [x19, #56]
	ldr	w0, [x20, #20]
	bl	_SHRT_EXT
	str	x0, [x19, #48]
	ldr	w0, [x20, #16]
	bl	_SHRT_EXT
	mov	x21, x0
	str	w21, [x19, #28]
	ldr	w0, [x20, #12]
	bl	_SHRT_EXT
	orr	w8, w0, w21, lsl #16
	str	w8, [x19, #28]
	ldr	w0, [x20, #8]
	bl	_SHRT_EXT
	mov	x21, x0
	str	w21, [x19, #32]
	ldr	w0, [x20, #4]
	bl	_SHRT_EXT
	orr	w8, w0, w21, lsl #16
	str	w8, [x19, #32]
	ldr	w0, [x20]
	bl	_SHRT_EXT
LBB0_4:
	mov	x20, x0
	ldr	w8, [x19, #28]
	stp	w8, w8, [x19, #36]
	cmp	w20, #2
	b.lt	LBB0_11
; %bb.5:
	sub	w8, w20, #1
	str	w8, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_rd_nm
	tbnz	x0, #63, LBB0_11
; %bb.6:
	add	w0, w20, #48
	bl	_BCPIO_PAD
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_rd_skip
	tbnz	x0, #63, LBB0_11
; %bb.7:
	ldr	w8, [x19, #24]
Lloh3:
	adrp	x9, _C_IFMT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _C_IFMT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh6:
	adrp	x9, _C_ISLNK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _C_ISLNK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.8:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_12
; %bb.9:
	mov	x0, x19
	bl	_rd_ln_nm
	tbnz	x0, #63, LBB0_11
; %bb.10:
	ldr	w0, [x19, #32]
	bl	_BCPIO_PAD
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_rd_skip
	tbz	x0, #63, LBB0_13
LBB0_11:
	mov	w0, #-1
	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_12:
	str	xzr, [x19, #96]
	ldr	x8, [x19, #16]
	strb	wzr, [x8]
	ldr	w0, [x19, #32]
	bl	_BCPIO_PAD
	str	x0, [x19]
LBB0_13:
	mov	x0, x19
	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
	b	_com_rd
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_swp_head,8,3                   ; @swp_head
	.comm	_C_IFMT,4,2                     ; @C_IFMT
	.comm	_C_ISLNK,4,2                    ; @C_ISLNK
.subsections_via_symbols
