	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efi_setup_tss
_efi_setup_tss:                         ## @efi_setup_tss
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	(%rdi), %r14
	movq	_BS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movq	_AllocateAnyPages@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_EfiLoaderData@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$4, %edi
	callq	_EFI_SIZE_TO_PAGES
	movq	_tss_pa@GOTPCREL(%rip), %rcx
	movl	%r13d, %edi
	movq	%rcx, %r13
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	*%r15
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_EFI_ERROR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_EFI_ERROR_CODE
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_printf
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	shll	$3, %r12d
	movslq	%r12d, %rbx
	movslq	(%r13), %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rdi, (%rax)
	movl	$4, %esi
	callq	_bzero
	movl	$4, (%r14,%rbx)
	movl	(%r13), %eax
	movl	%eax, 4(%r14,%rbx)
	movq	_SDT_SYSTSS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 72(%r14,%rbx)
	movq	$1, 8(%r14,%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%r14,%rbx)
	sarl	$24, %eax
	movl	%eax, 16(%r14,%rbx)
	movups	%xmm0, 40(%r14,%rbx)
	movups	%xmm0, 24(%r14,%rbx)
	movl	$1, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BS,8,3                         ## @BS
	.comm	_AllocateAnyPages,4,2           ## @AllocateAnyPages
	.comm	_EfiLoaderData,4,2              ## @EfiLoaderData
	.comm	_tss_pa,4,2                     ## @tss_pa
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"efi_setup_tss: AllocatePages tss error %lu\n"

	.comm	_SDT_SYSTSS,4,2                 ## @SDT_SYSTSS
	.no_dead_strip	_efi_setup_tss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function efi_setup_tss
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_efi_setup_tss:                         ; @efi_setup_tss
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	ldr	x24, [x0]
Lloh0:
	adrp	x8, _BS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x26, [x8]
Lloh3:
	adrp	x8, _AllocateAnyPages@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AllocateAnyPages@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x8, _EfiLoaderData@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EfiLoaderData@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	mov	w25, #4
	mov	w0, #4
	bl	_EFI_SIZE_TO_PAGES
	mov	x2, x0
Lloh9:
	adrp	x21, _tss_pa@GOTPAGE
Lloh10:
	ldr	x21, [x21, _tss_pa@GOTPAGEOFF]
	mov	x0, x22
	mov	x1, x23
	mov	x3, x21
	blr	x26
	mov	x22, x0
	bl	_EFI_ERROR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_EFI_ERROR_CODE
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	lsl	w8, w20, #3
	add	x20, x24, w8, sxtw
	ldrsw	x0, [x21]
	str	x0, [x19]
	mov	w1, #4
	bl	_bzero
	str	w25, [x20]
	ldr	w8, [x21]
	str	w8, [x20, #4]
Lloh13:
	adrp	x9, _SDT_SYSTSS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SDT_SYSTSS@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	str	w9, [x20, #72]
Lloh16:
	adrp	x9, lCPI0_0@PAGE
Lloh17:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x20, #8]
	stp	xzr, xzr, [x20, #56]
	asr	w8, w8, #24
	str	w8, [x20, #16]
	movi.2d	v0, #0000000000000000
	stur	q0, [x20, #24]
	stur	q0, [x20, #40]
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_BS,8,3                         ; @BS
	.comm	_AllocateAnyPages,4,2           ; @AllocateAnyPages
	.comm	_EfiLoaderData,4,2              ; @EfiLoaderData
	.comm	_tss_pa,4,2                     ; @tss_pa
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"efi_setup_tss: AllocatePages tss error %lu\n"

	.comm	_SDT_SYSTSS,4,2                 ; @SDT_SYSTSS
	.no_dead_strip	_efi_setup_tss
.subsections_via_symbols
