	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_rth_space                 ## -- Begin function test_rth_space
	.p2align	4, 0x90
_test_rth_space:                        ## @test_rth_space
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	L_.str(%rip), %rdi
	movl	$16, %esi
	callq	_set_funcname
	movq	_IPV6_RTHDR_TYPE_0@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	notl	%edi
	xorl	%esi, %esi
	callq	_inet6_rth_space
	leaq	l_.str.1(%rip), %rcx
	xorl	%edi, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_checknum
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_inet6_rth_space
	leaq	l_.str.2(%rip), %rbx
	xorl	%edi, %edi
	movl	%eax, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_checknum
	movl	(%r14), %edi
	movl	$127, %esi
	callq	_inet6_rth_space
	xorl	%edi, %edi
	movl	%eax, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_checknum
	movl	(%r14), %edi
	movl	$-1, %esi
	callq	_inet6_rth_space
	leaq	l_.str.3(%rip), %rcx
	xorl	%edi, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_checknum
	movl	(%r14), %edi
	movl	$128, %esi
	callq	_inet6_rth_space
	leaq	l_.str.4(%rip), %rcx
	xorl	%edi, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_checknum                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"test_rth_space"

	.comm	_IPV6_RTHDR_TYPE_0,4,2          ## @IPV6_RTHDR_TYPE_0
	.section	__TEXT,__const
l_.str.1:                               ## @.str.1
	.asciz	"invalid routing header type\000"

l_.str.2:                               ## @.str.2
	.asciz	"0 segments\000"

l_.str.3:                               ## @.str.3
	.asciz	"-1 segments\000"

l_.str.4:                               ## @.str.4
	.asciz	"128 segments\000"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_rth_space                 ; -- Begin function test_rth_space
	.p2align	2
_test_rth_space:                        ; @test_rth_space
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #16
	bl	_set_funcname
Lloh2:
	adrp	x20, _IPV6_RTHDR_TYPE_0@GOTPAGE
Lloh3:
	ldr	x20, [x20, _IPV6_RTHDR_TYPE_0@GOTPAGEOFF]
	ldr	w8, [x20]
	mvn	w0, w8
	mov	w1, #0
	bl	_inet6_rth_space
	mov	x1, x0
Lloh4:
	adrp	x3, l_.str.1@PAGE
Lloh5:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w0, #0
	mov	w2, #0
	bl	_checknum
	ldr	w0, [x20]
	mov	w1, #0
	bl	_inet6_rth_space
	mov	x1, x0
Lloh6:
	adrp	x19, l_.str.2@PAGE
Lloh7:
	add	x19, x19, l_.str.2@PAGEOFF
	mov	w0, #0
	mov	w2, #1
	mov	x3, x19
	bl	_checknum
	ldr	w0, [x20]
	mov	w1, #127
	bl	_inet6_rth_space
	mov	x1, x0
	mov	w0, #0
	mov	w2, #1
	mov	x3, x19
	bl	_checknum
	ldr	w0, [x20]
	mov	w1, #-1
	bl	_inet6_rth_space
	mov	x1, x0
Lloh8:
	adrp	x3, l_.str.3@PAGE
Lloh9:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	w0, #0
	mov	w2, #0
	bl	_checknum
	ldr	w0, [x20]
	mov	w1, #128
	bl	_inet6_rth_space
	mov	x1, x0
Lloh10:
	adrp	x3, l_.str.4@PAGE
Lloh11:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	w0, #0
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_checknum
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test_rth_space"

	.comm	_IPV6_RTHDR_TYPE_0,4,2          ; @IPV6_RTHDR_TYPE_0
	.section	__TEXT,__const
l_.str.1:                               ; @.str.1
	.asciz	"invalid routing header type\000"

l_.str.2:                               ; @.str.2
	.asciz	"0 segments\000"

l_.str.3:                               ; @.str.3
	.asciz	"-1 segments\000"

l_.str.4:                               ; @.str.4
	.asciz	"128 segments\000"

.subsections_via_symbols
