	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xen_write_gdt_entry
_xen_write_gdt_entry:                   ## @xen_write_gdt_entry
	.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
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	xorl	%eax, %eax
	callq	_preempt_disable
	andl	$-2, %ebx
	cmpl	$128, %ebx
	je	LBB0_3
## %bb.1:
	movslq	%r15d, %rax
	leaq	(%r12,%rax,4), %rdi
	callq	_arbitrary_virt_to_machine
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_xen_mc_flush
	movl	(%r14), %esi
	movl	%ebx, %edi
	callq	_HYPERVISOR_update_descriptor
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_BUG
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_preempt_enable                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_xen_write_gdt_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xen_write_gdt_entry
_xen_write_gdt_entry:                   ; @xen_write_gdt_entry
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_preempt_disable
	and	w8, w22, #0xfffffffe
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	add	x0, x21, w20, sxtw #2
	bl	_arbitrary_virt_to_machine
	mov	x20, x0
	bl	_xen_mc_flush
	ldr	w1, [x19]
	mov	x0, x20
	bl	_HYPERVISOR_update_descriptor
	cbz	w0, LBB0_3
; %bb.2:
	bl	_BUG
LBB0_3:
	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	_preempt_enable
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_xen_write_gdt_entry
.subsections_via_symbols
