	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amd64_set_ldt_data             ## -- Begin function amd64_set_ldt_data
	.p2align	4, 0x90
_amd64_set_ldt_data:                    ## @amd64_set_ldt_data
	.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	%rcx, %rbx
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_dt_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_assert
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.1:
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax), %r8
	movslq	%r15d, %r9
	movl	%r14d, %esi
	leaq	-1(%rsi), %rcx
	movl	%esi, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	jmp	LBB0_5
LBB0_3:
	andl	$-4, %esi
	leaq	(%r8,%r9,4), %rcx
	addq	$12, %rcx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rdi,4), %edx
	movl	%edx, -12(%rcx,%rdi,4)
	movl	4(%rbx,%rdi,4), %edx
	movl	%edx, -8(%rcx,%rdi,4)
	movl	8(%rbx,%rdi,4), %edx
	movl	%edx, -4(%rcx,%rdi,4)
	movl	12(%rbx,%rdi,4), %edx
	movl	%edx, (%rcx,%rdi,4)
	addq	$4, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_4
LBB0_5:
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	addq	%rdi, %r9
	leaq	(%r8,%r9,4), %rcx
	leaq	(%rbx,%rdi,4), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rsi,4), %edi
	movl	%edi, (%rcx,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dt_lock,4,2                    ## @dt_lock
	.comm	_MA_OWNED,4,2                   ## @MA_OWNED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amd64_set_ldt_data             ; -- Begin function amd64_set_ldt_data
	.p2align	2
_amd64_set_ldt_data:                    ; @amd64_set_ldt_data
	.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	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _MA_OWNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MA_OWNED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, _dt_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _dt_lock@GOTPAGEOFF]
	bl	_mtx_assert
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x9, [x8]
	mov	w8, w21
	add	x9, x9, w20, sxtw #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x19], #4
	str	w10, [x9], #4
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_3:
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_dt_lock,4,2                    ; @dt_lock
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
.subsections_via_symbols
