	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_record_header
_parse_record_header:                   ## @parse_record_header
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	%rax, (%rdi)
	leaq	8(%rsi), %rdi
	callq	_ntoh16
	movq	%rax, 16(%r14)
	addq	$24, %rbx
	movq	%rbx, %rdi
	callq	_ntoh16
	movq	%rax, 8(%r14)
	movq	(%r14), %rcx
	movq	_PTLS_CONTENT_TYPE_APPDATA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.2:
	movq	_PTLS_MAX_ENCRYPTED_RECORD_SIZE@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_1:
	movq	_PTLS_MAX_PLAINTEXT_RECORD_SIZE@GOTPCREL(%rip), %rdx
LBB0_3:
	xorl	%ecx, %ecx
	cmpq	%rax, (%rdx)
	jae	LBB0_5
## %bb.4:
	movq	_PTLS_ALERT_DECODE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_5:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTLS_CONTENT_TYPE_APPDATA,8,3  ## @PTLS_CONTENT_TYPE_APPDATA
	.comm	_PTLS_MAX_ENCRYPTED_RECORD_SIZE,8,3 ## @PTLS_MAX_ENCRYPTED_RECORD_SIZE
	.comm	_PTLS_MAX_PLAINTEXT_RECORD_SIZE,8,3 ## @PTLS_MAX_PLAINTEXT_RECORD_SIZE
	.comm	_PTLS_ALERT_DECODE_ERROR,4,2    ## @PTLS_ALERT_DECODE_ERROR
	.no_dead_strip	_parse_record_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_record_header
_parse_record_header:                   ; @parse_record_header
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	add	x0, x1, #8
	ldr	x8, [x19], #24
	str	x8, [x20]
	bl	_ntoh16
	str	x0, [x20, #16]
	mov	x0, x19
	bl	_ntoh16
	str	x0, [x20, #8]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _PTLS_CONTENT_TYPE_APPDATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PTLS_CONTENT_TYPE_APPDATA@GOTPAGEOFF]
Lloh2:
	adrp	x10, _PTLS_MAX_ENCRYPTED_RECORD_SIZE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PTLS_MAX_ENCRYPTED_RECORD_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x11, _PTLS_MAX_PLAINTEXT_RECORD_SIZE@GOTPAGE
Lloh6:
	ldr	x11, [x11, _PTLS_MAX_PLAINTEXT_RECORD_SIZE@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _PTLS_ALERT_DECODE_ERROR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PTLS_ALERT_DECODE_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	x8, x0
	csel	w0, w9, wzr, lo
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PTLS_CONTENT_TYPE_APPDATA,8,3  ; @PTLS_CONTENT_TYPE_APPDATA
	.comm	_PTLS_MAX_ENCRYPTED_RECORD_SIZE,8,3 ; @PTLS_MAX_ENCRYPTED_RECORD_SIZE
	.comm	_PTLS_MAX_PLAINTEXT_RECORD_SIZE,8,3 ; @PTLS_MAX_PLAINTEXT_RECORD_SIZE
	.comm	_PTLS_ALERT_DECODE_ERROR,4,2    ; @PTLS_ALERT_DECODE_ERROR
	.no_dead_strip	_parse_record_header
.subsections_via_symbols
