	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtls1_set_handshake_header     ## -- Begin function dtls1_set_handshake_header
	.p2align	4, 0x90
_dtls1_set_handshake_header:            ## @dtls1_set_handshake_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_SSL3_MT_CHANGE_CIPHER_SPEC@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	(%rdi), %rax
	movl	4(%rax), %ecx
	movl	%ecx, (%rax)
	movq	_SSL3_MT_CCS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_dtls1_set_message_header_int
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_WPACKET_put_bytes_u8
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_6
LBB0_2:
	xorl	%r14d, %r14d
	movl	%edx, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_dtls1_set_message_header
	movq	_DTLS1_HM_HEADER_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_WPACKET_allocate_bytes
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_WPACKET_start_sub_packet
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	movl	$1, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL3_MT_CHANGE_CIPHER_SPEC,4,2 ## @SSL3_MT_CHANGE_CIPHER_SPEC
	.comm	_SSL3_MT_CCS,4,2                ## @SSL3_MT_CCS
	.comm	_DTLS1_HM_HEADER_LENGTH,4,2     ## @DTLS1_HM_HEADER_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtls1_set_handshake_header     ; -- Begin function dtls1_set_handshake_header
	.p2align	2
_dtls1_set_handshake_header:            ; @dtls1_set_handshake_header
	.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	x19, x1
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.ne	LBB0_2
; %bb.1:
	ldr	x8, [x0]
	ldr	w3, [x8, #4]
	str	w3, [x8]
Lloh3:
	adrp	x20, _SSL3_MT_CCS@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SSL3_MT_CCS@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_dtls1_set_message_header_int
	ldr	w1, [x20]
	mov	x0, x19
	bl	_WPACKET_put_bytes_u8
	cbnz	w0, LBB0_4
	b	LBB0_5
LBB0_2:
	mov	x1, x2
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_dtls1_set_message_header
Lloh5:
	adrp	x8, _DTLS1_HM_HEADER_LENGTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DTLS1_HM_HEADER_LENGTH@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_WPACKET_allocate_bytes
	cbz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_WPACKET_start_sub_packet
	cbz	w0, LBB0_5
LBB0_4:
	mov	w0, #1
LBB0_5:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL3_MT_CHANGE_CIPHER_SPEC,4,2 ; @SSL3_MT_CHANGE_CIPHER_SPEC
	.comm	_SSL3_MT_CCS,4,2                ; @SSL3_MT_CCS
	.comm	_DTLS1_HM_HEADER_LENGTH,4,2     ; @DTLS1_HM_HEADER_LENGTH
.subsections_via_symbols
