	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_packet_id_write_long_wrap
_test_packet_id_write_long_wrap:        ## @test_packet_id_write_long_wrap
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	leaq	16(%rbx), %r14
	movabsq	$21504901251071, %rax           ## imm = 0x138EFFFFFFFF
	movq	%rax, 16(%rbx)
	movq	_now@GOTPCREL(%rip), %r12
	movl	$5006, (%r12)                   ## imm = 0x138E
	leaq	24(%rbx), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_packet_id_write
	movl	%eax, %edi
	callq	_assert_false
	movl	$5010, (%r12)                   ## imm = 0x1392
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_packet_id_write
	movl	%eax, %edi
	callq	_assert_true
	xorl	%edi, %edi
	cmpl	$1, 16(%rbx)
	sete	%dil
	callq	_assert
	movl	20(%rbx), %eax
	xorl	%edi, %edi
	cmpl	(%r12), %eax
	sete	%dil
	callq	_assert
	movq	(%rbx), %r14
	movl	$1, %edi
	callq	_htonl
	xorl	%edi, %edi
	cmpq	%rax, %r14
	sete	%dil
	callq	_assert_true
	movq	8(%rbx), %rbx
	movl	(%r12), %edi
	callq	_htonl
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%dil
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert_true                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_now,4,2                        ## @now
	.no_dead_strip	_test_packet_id_write_long_wrap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function test_packet_id_write_long_wrap
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	5006                            ; 0x138e
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_test_packet_id_write_long_wrap:        ; @test_packet_id_write_long_wrap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x21, [x0]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	mov	x19, x21
	str	d0, [x19, #16]!
Lloh2:
	adrp	x22, _now@GOTPAGE
Lloh3:
	ldr	x22, [x22, _now@GOTPAGEOFF]
	mov	w8, #5006
	str	w8, [x22]
	add	x20, x21, #24
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	w3, #0
	bl	_packet_id_write
	bl	_assert_false
	mov	w8, #5010
	str	w8, [x22]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	w3, #0
	bl	_packet_id_write
	bl	_assert_true
	ldr	w8, [x19]
	cmp	w8, #1
	cset	w0, eq
	bl	_assert
	ldr	w8, [x21, #20]
	ldr	w9, [x22]
	cmp	w8, w9
	cset	w0, eq
	bl	_assert
	ldr	x19, [x21]
	mov	w0, #1
	bl	_htonl
	cmp	x19, x0
	cset	w0, eq
	bl	_assert_true
	ldr	x19, [x21, #8]
	ldr	w0, [x22]
	bl	_htonl
	cmp	x19, x0
	cset	w0, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_assert_true
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_now,4,2                        ; @now
	.no_dead_strip	_test_packet_id_write_long_wrap
.subsections_via_symbols
