	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_PACKET_strndup
_test_PACKET_strndup:                   ## @test_PACKET_strndup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	$0, -48(%rbp)
	leaq	-26(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$120, %esi
	movl	$10, %edx
	callq	_memset
	leaq	-36(%rbp), %rdi
	movl	$121, %esi
	movl	$10, %edx
	callq	_memset
	movb	$0, -31(%rbp)
	leaq	-52(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$10, %edx
	callq	_PACKET_buf_init
	movl	%eax, %edi
	callq	_TEST_true
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	leaq	-52(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_PACKET_strndup
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	-48(%rbp), %rdi
	callq	_strlen
	movl	%eax, %edi
	movl	$10, %esi
	callq	_TEST_size_t_eq
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movq	-48(%rbp), %rdi
	leaq	-26(%rbp), %rsi
	movl	$10, %edx
	callq	_TEST_strn_eq
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	leaq	-52(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	movl	$10, %edx
	callq	_PACKET_buf_init
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	leaq	-52(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_PACKET_strndup
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movq	-48(%rbp), %rdi
	callq	_strlen
	movl	%eax, %edi
	movl	$5, %esi
	callq	_TEST_size_t_eq
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	-48(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	callq	_TEST_str_eq
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
LBB0_8:
	movq	-48(%rbp), %rdi
	callq	_OPENSSL_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_test_PACKET_strndup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_PACKET_strndup
_test_PACKET_strndup:                   ; @test_PACKET_strndup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	str	xzr, [sp, #8]
	add	x0, sp, #30
	mov	w1, #120
	mov	w2, #10
	bl	_memset
	add	x0, sp, #20
	mov	w1, #121
	mov	w2, #10
	bl	_memset
	strb	wzr, [sp, #25]
	add	x0, sp, #4
	add	x1, sp, #30
	mov	w2, #10
	bl	_PACKET_buf_init
	bl	_TEST_true
	cbz	w0, LBB0_8
; %bb.1:
	add	x0, sp, #4
	add	x1, sp, #8
	bl	_PACKET_strndup
	bl	_TEST_true
	cbz	w0, LBB0_8
; %bb.2:
	ldr	x0, [sp, #8]
	bl	_strlen
	mov	w1, #10
	bl	_TEST_size_t_eq
	cbz	w0, LBB0_8
; %bb.3:
	ldr	x0, [sp, #8]
	add	x1, sp, #30
	mov	w2, #10
	bl	_TEST_strn_eq
	cbz	w0, LBB0_8
; %bb.4:
	add	x0, sp, #4
	add	x1, sp, #20
	mov	w2, #10
	bl	_PACKET_buf_init
	bl	_TEST_true
	cbz	w0, LBB0_8
; %bb.5:
	add	x0, sp, #4
	add	x1, sp, #8
	bl	_PACKET_strndup
	bl	_TEST_true
	cbz	w0, LBB0_8
; %bb.6:
	ldr	x0, [sp, #8]
	bl	_strlen
	mov	w1, #5
	bl	_TEST_size_t_eq
	cbz	w0, LBB0_8
; %bb.7:
	ldr	x0, [sp, #8]
	add	x1, sp, #20
	bl	_TEST_str_eq
	cmp	w0, #0
	cset	w19, ne
	b	LBB0_9
LBB0_8:
	mov	w19, #0
LBB0_9:
	ldr	x0, [sp, #8]
	bl	_OPENSSL_free
	ldur	x8, [x29, #-24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_test_PACKET_strndup
.subsections_via_symbols
