	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_close_construct_packet     ## -- Begin function tls_close_construct_packet
	.p2align	4, 0x90
_tls_close_construct_packet:            ## @tls_close_construct_packet
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_SSL3_MT_CHANGE_CIPHER_SPEC@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_WPACKET_close
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_WPACKET_get_length
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.4:
	movq	-24(%rbp), %rcx
	movq	_INT_MAX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	ja	LBB0_6
## %bb.5:
	movl	%ecx, (%r14)
	movq	$0, 8(%r14)
	movl	$1, %eax
	jmp	LBB0_6
LBB0_2:
	xorl	%eax, %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL3_MT_CHANGE_CIPHER_SPEC,4,2 ## @SSL3_MT_CHANGE_CIPHER_SPEC
	.comm	_INT_MAX,8,3                    ## @INT_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_close_construct_packet     ; -- Begin function tls_close_construct_packet
	.p2align	2
_tls_close_construct_packet:            ; @tls_close_construct_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SSL3_MT_CHANGE_CIPHER_SPEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL3_MT_CHANGE_CIPHER_SPEC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_WPACKET_close
	cbz	w0, LBB0_6
LBB0_2:
	add	x1, sp, #8
	mov	x0, x20
	bl	_WPACKET_get_length
	cbz	w0, LBB0_6
; %bb.3:
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ls	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	str	w8, [x19]
	str	xzr, [x19, #8]
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL3_MT_CHANGE_CIPHER_SPEC,4,2 ; @SSL3_MT_CHANGE_CIPHER_SPEC
	.comm	_INT_MAX,8,3                    ; @INT_MAX
.subsections_via_symbols
