	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_PACKET_buf_init
_test_PACKET_buf_init:                  ## @test_PACKET_buf_init
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_BUF_LEN@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leaq	-36(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_PACKET_buf_init
	movl	%eax, %edi
	callq	_TEST_true
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	leaq	-36(%rbp), %rdi
	callq	_PACKET_remaining
	movl	%eax, %edi
	movl	$4, %esi
	callq	_TEST_size_t_eq
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movl	(%r15), %edx
	leaq	-36(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_PACKET_buf_init
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	leaq	-36(%rbp), %rdi
	callq	_PACKET_remaining
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_TEST_size_t_eq
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	-36(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$-1, %edx
	callq	_PACKET_buf_init
	movl	%eax, %edi
	callq	_TEST_false
	xorl	%r14d, %r14d
	testl	%eax, %eax
	setne	%r14b
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%r14d, %eax
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUF_LEN,4,2                    ## @BUF_LEN
	.no_dead_strip	_test_PACKET_buf_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_PACKET_buf_init
_test_PACKET_buf_init:                  ; @test_PACKET_buf_init
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x20, _BUF_LEN@GOTPAGE
Lloh4:
	ldr	x20, [x20, _BUF_LEN@GOTPAGEOFF]
	ldr	w8, [x20]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	sub	x0, x29, #28
	mov	x1, x19
	mov	w2, #4
	bl	_PACKET_buf_init
	bl	_TEST_true
	cbz	w0, LBB0_5
; %bb.1:
	sub	x0, x29, #28
	bl	_PACKET_remaining
	mov	w1, #4
	bl	_TEST_size_t_eq
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w2, [x20]
	sub	x0, x29, #28
	mov	x1, x19
	bl	_PACKET_buf_init
	bl	_TEST_true
	cbz	w0, LBB0_5
; %bb.3:
	sub	x0, x29, #28
	bl	_PACKET_remaining
	ldr	w1, [x20]
	bl	_TEST_size_t_eq
	cbz	w0, LBB0_5
; %bb.4:
	sub	x0, x29, #28
	mov	x1, x19
	mov	w2, #-1
	bl	_PACKET_buf_init
	bl	_TEST_false
	cmp	w0, #0
	cset	w0, ne
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_BUF_LEN,4,2                    ; @BUF_LEN
	.no_dead_strip	_test_PACKET_buf_init
.subsections_via_symbols
