	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scm_fp_copy
_scm_fp_copy:                           ## @scm_fp_copy
	.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
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_CMSG_DATA
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r12), %r15
	movl	(%rbx), %ebx
	movl	$4, %edi
	callq	_CMSG_ALIGN
	subl	%eax, %ebx
	xorl	%eax, %eax
	cmpl	$4, %ebx
	jl	LBB0_16
## %bb.1:
	sarl	$2, %ebx
	movq	_SCM_MAX_FD@GOTPCREL(%rip), %r14
	cmpl	(%r14), %ebx
	jg	LBB0_2
## %bb.4:
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movq	(%r15), %r12
	movl	8(%r15), %eax
	jmp	LBB0_9
LBB0_6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	movq	%rax, (%r12)
	movq	$0, (%rax)
	movl	(%r14), %eax
	movl	%eax, 8(%r15)
	xorl	%r12d, %r12d
LBB0_9:
	movslq	%ebx, %rcx
	addq	%r12, %rcx
	cltq
	cmpq	%rax, %rcx
	jbe	LBB0_10
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	shlq	$3, %r12
	addq	16(%r15), %r12
	cmpl	$2, %ebx
	movl	$1, %r13d
	cmovgel	%ebx, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %edi
	testl	%edi, %edi
	js	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	callq	_fget
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, (%r12,%r14,8)
	incq	(%r15)
	incq	%r14
	cmpq	%r14, %r13
	jne	LBB0_11
## %bb.15:
	movl	%ebx, %eax
	jmp	LBB0_16
LBB0_13:
	movq	_EBADF@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_SCM_MAX_FD,4,2                 ## @SCM_MAX_FD
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EBADF,4,2                      ## @EBADF
	.no_dead_strip	_scm_fp_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scm_fp_copy
_scm_fp_copy:                           ; @scm_fp_copy
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x19, x0
	bl	_CMSG_DATA
	mov	x20, x0
	ldr	x21, [x22]
	ldr	w19, [x19]
	mov	w0, #4
	bl	_CMSG_ALIGN
	sub	w8, w19, w0
	cmp	w8, #4
	b.ge	LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_10
LBB0_2:
	asr	w19, w8, #2
Lloh0:
	adrp	x23, _SCM_MAX_FD@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SCM_MAX_FD@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w19, w8
	b.gt	LBB0_8
; %bb.3:
	cbz	x21, LBB0_5
; %bb.4:
	ldr	x8, [x21]
	ldr	w9, [x21, #8]
	b	LBB0_7
LBB0_5:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kmalloc
	cbz	x0, LBB0_16
; %bb.6:
	mov	x21, x0
	mov	x8, #0
	str	x0, [x22]
	str	xzr, [x0]
	ldr	w9, [x23]
	str	w9, [x0, #8]
LBB0_7:
	add	x10, x8, w19, sxtw
	cmp	x10, w9, sxtw
	b.ls	LBB0_11
LBB0_8:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_10:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	x9, [x21, #16]
	add	x22, x9, x8, lsl #3
	cmp	w19, #1
	csinc	w23, w19, wzr, gt
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	tbnz	w0, #31, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_fget
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	str	x0, [x22], #8
	ldr	x8, [x21]
	add	x8, x8, #1
	str	x8, [x21]
	add	x20, x20, #4
	subs	x23, x23, #1
	b.ne	LBB0_12
	b	LBB0_10
LBB0_15:
Lloh7:
	adrp	x8, _EBADF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
	b	LBB0_9
LBB0_16:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SCM_MAX_FD,4,2                 ; @SCM_MAX_FD
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EBADF,4,2                      ; @EBADF
	.no_dead_strip	_scm_fp_copy
.subsections_via_symbols
