	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_sized_type_rec
_write_sized_type_rec:                  ## @write_sized_type_rec
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_CTF_MAX_SIZE@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jae	LBB0_3
## %bb.1:
	movq	_CTF_LSIZE_SENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	%rbx, %rdi
	callq	_CTF_SIZE_TO_LSIZE_HI
	movl	%eax, 24(%r15)
	movq	%rbx, %rdi
	callq	_CTF_SIZE_TO_LSIZE_LO
	movl	%eax, 20(%r15)
	movq	_target_requires_swap@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.2:
	movl	16(%r15), %edi
	callq	_SWAP_32
	movq	8(%r15), %rdi
	callq	_SWAP_16
	movq	(%r15), %rdi
	callq	_SWAP_16
	movl	24(%r15), %edi
	callq	_SWAP_32
	movl	20(%r15), %edi
	callq	_SWAP_32
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, (%r15)
	movq	_target_requires_swap@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movl	16(%r15), %edi
	callq	_SWAP_32
	movq	8(%r15), %rdi
	callq	_SWAP_16
	movq	(%r15), %rdi
	callq	_SWAP_16
LBB0_5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$32, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ctf_buf_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CTF_MAX_SIZE,8,3               ## @CTF_MAX_SIZE
	.comm	_CTF_LSIZE_SENT,8,3             ## @CTF_LSIZE_SENT
	.comm	_target_requires_swap,8,3       ## @target_requires_swap
	.no_dead_strip	_write_sized_type_rec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_sized_type_rec
_write_sized_type_rec:                  ; @write_sized_type_rec
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CTF_MAX_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTF_MAX_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.hs	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _CTF_LSIZE_SENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTF_LSIZE_SENT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x21
	bl	_CTF_SIZE_TO_LSIZE_HI
	str	w0, [x19, #24]
	mov	x0, x21
	bl	_CTF_SIZE_TO_LSIZE_LO
	str	w0, [x19, #20]
Lloh6:
	adrp	x8, _target_requires_swap@GOTPAGE
Lloh7:
	ldr	x8, [x8, _target_requires_swap@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	w0, [x19, #16]
	bl	_SWAP_32
	ldr	x0, [x19, #8]
	bl	_SWAP_16
	ldr	x0, [x19]
	bl	_SWAP_16
	ldr	w0, [x19, #24]
	bl	_SWAP_32
	ldr	w0, [x19, #20]
	bl	_SWAP_32
	b	LBB0_5
LBB0_3:
	str	x21, [x19]
Lloh9:
	adrp	x8, _target_requires_swap@GOTPAGE
Lloh10:
	ldr	x8, [x8, _target_requires_swap@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x19, #16]
	bl	_SWAP_32
	ldr	x0, [x19, #8]
	bl	_SWAP_16
	ldr	x0, [x19]
	bl	_SWAP_16
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #32
	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	_ctf_buf_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CTF_MAX_SIZE,8,3               ; @CTF_MAX_SIZE
	.comm	_CTF_LSIZE_SENT,8,3             ; @CTF_LSIZE_SENT
	.comm	_target_requires_swap,8,3       ; @target_requires_swap
	.no_dead_strip	_write_sized_type_rec
.subsections_via_symbols
