	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _Block_byref_assign_copy
__Block_byref_assign_copy:              ## @_Block_byref_assign_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rsi), %rdi
	movl	(%rdi), %eax
	movq	_BLOCK_IS_GC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
LBB0_9:
	movq	8(%rbx), %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__Block_assign                  ## TAILCALL
LBB0_1:
	movq	_BLOCK_REFCOUNT_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.7:
	movq	_BLOCK_NEEDS_FREE@GOTPCREL(%rip), %rcx
	notl	%eax
	testl	%eax, (%rcx)
	jne	LBB0_9
## %bb.8:
	callq	_latching_incr_int
	jmp	LBB0_9
LBB0_2:
	movl	%edx, %r15d
	movq	_BLOCK_FIELD_IS_BYREF@GOTPCREL(%rip), %rax
	movq	_BLOCK_FIELD_IS_WEAK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	andl	%r12d, %r15d
	xorl	%edx, %edx
	cmpl	%r12d, %r15d
	sete	%dl
	movq	16(%rbx), %rdi
	xorl	%esi, %esi
	callq	__Block_allocator
	movq	__Byref_flag_initial_value@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rbx), %ecx
	movl	%ecx, (%rax)
	movq	%rax, 8(%rax)
	movq	%rax, 8(%rbx)
	movq	16(%rbx), %rcx
	movq	%rcx, 16(%rax)
	cmpl	%r12d, %r15d
	jne	LBB0_4
## %bb.3:
	movq	__NSConcreteWeakBlockVariable@GOTPCREL(%rip), %rcx
	movq	%rcx, 40(%rax)
LBB0_4:
	movq	_BLOCK_HAS_COPY_DISPOSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_6
## %bb.5:
	movq	24(%rbx), %rcx
	movq	%rcx, 24(%rax)
	movl	32(%rbx), %ecx
	movl	%ecx, 32(%rax)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	*24(%rbx)
	jmp	LBB0_9
LBB0_6:
	addq	$24, %rax
	leaq	24(%rbx), %rsi
	movq	16(%rbx), %rdx
	addq	$-4, %rdx
	movq	%rax, %rdi
	callq	__Block_memmove
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_BLOCK_IS_GC,4,2                ## @BLOCK_IS_GC
	.comm	_BLOCK_REFCOUNT_MASK,4,2        ## @BLOCK_REFCOUNT_MASK
	.comm	_BLOCK_FIELD_IS_BYREF,4,2       ## @BLOCK_FIELD_IS_BYREF
	.comm	_BLOCK_FIELD_IS_WEAK,4,2        ## @BLOCK_FIELD_IS_WEAK
	.comm	__Byref_flag_initial_value,4,2  ## @_Byref_flag_initial_value
	.comm	__NSConcreteWeakBlockVariable,4,2 ## @_NSConcreteWeakBlockVariable
	.comm	_BLOCK_HAS_COPY_DISPOSE,4,2     ## @BLOCK_HAS_COPY_DISPOSE
	.comm	_BLOCK_NEEDS_FREE,4,2           ## @BLOCK_NEEDS_FREE
	.no_dead_strip	__Block_byref_assign_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _Block_byref_assign_copy
__Block_byref_assign_copy:              ; @_Block_byref_assign_copy
	.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
	ldr	x0, [x1, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _BLOCK_IS_GC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BLOCK_IS_GC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
	ldr	x0, [x20, #8]
	mov	x1, 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	__Block_assign
LBB0_2:
Lloh3:
	adrp	x9, _BLOCK_REFCOUNT_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BLOCK_REFCOUNT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh6:
	adrp	x9, _BLOCK_NEEDS_FREE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BLOCK_NEEDS_FREE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	b.ne	LBB0_1
; %bb.4:
	bl	_latching_incr_int
	b	LBB0_1
LBB0_5:
Lloh9:
	adrp	x8, _BLOCK_FIELD_IS_BYREF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BLOCK_FIELD_IS_BYREF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _BLOCK_FIELD_IS_WEAK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BLOCK_FIELD_IS_WEAK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w21, w9, w8
	and	w22, w21, w2
	cmp	w22, w21
	cset	w2, eq
	ldr	x0, [x20, #16]
	mov	w1, #0
	bl	__Block_allocator
	ldr	w8, [x20]
Lloh15:
	adrp	x9, __Byref_flag_initial_value@GOTPAGE
Lloh16:
	ldr	x9, [x9, __Byref_flag_initial_value@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0]
	ldr	x8, [x20, #16]
	str	x0, [x0, #8]
	str	x0, [x20, #8]
	str	x8, [x0, #16]
	cmp	w22, w21
	b.ne	LBB0_7
; %bb.6:
Lloh18:
	adrp	x8, __NSConcreteWeakBlockVariable@GOTPAGE
Lloh19:
	ldr	x8, [x8, __NSConcreteWeakBlockVariable@GOTPAGEOFF]
	str	x8, [x0, #40]
LBB0_7:
	ldr	w8, [x20]
Lloh20:
	adrp	x9, _BLOCK_HAS_COPY_DISPOSE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BLOCK_HAS_COPY_DISPOSE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	x8, [x20, #24]
	str	x8, [x0, #24]
	ldr	w8, [x20, #32]
	str	w8, [x0, #32]
	ldr	x8, [x20, #24]
	mov	x1, x20
	blr	x8
	b	LBB0_1
LBB0_9:
	add	x0, x0, #24
	add	x1, x20, #24
	ldr	x8, [x20, #16]
	sub	x2, x8, #4
	bl	__Block_memmove
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_BLOCK_IS_GC,4,2                ; @BLOCK_IS_GC
	.comm	_BLOCK_REFCOUNT_MASK,4,2        ; @BLOCK_REFCOUNT_MASK
	.comm	_BLOCK_FIELD_IS_BYREF,4,2       ; @BLOCK_FIELD_IS_BYREF
	.comm	_BLOCK_FIELD_IS_WEAK,4,2        ; @BLOCK_FIELD_IS_WEAK
	.comm	__Byref_flag_initial_value,4,2  ; @_Byref_flag_initial_value
	.comm	__NSConcreteWeakBlockVariable,4,2 ; @_NSConcreteWeakBlockVariable
	.comm	_BLOCK_HAS_COPY_DISPOSE,4,2     ; @BLOCK_HAS_COPY_DISPOSE
	.comm	_BLOCK_NEEDS_FREE,4,2           ; @BLOCK_NEEDS_FREE
	.no_dead_strip	__Block_byref_assign_copy
.subsections_via_symbols
