	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_rth_init                  ## -- Begin function test_rth_init
	.p2align	4, 0x90
_test_rth_init:                         ## @test_rth_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	%r14
	pushq	%rbx
	movl	$10256, %eax                    ## imm = 0x2810
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	L_.str(%rip), %rdi
	movl	$15, %esi
	callq	_set_funcname
	movq	_IPV6_RTHDR_TYPE_0@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	-10272(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$10, %esi
	movl	$100, %ecx
	callq	_inet6_rth_init
	leaq	l_.str.1(%rip), %rdx
	xorl	%edi, %edi
	movq	%rax, %rsi
	callq	_checkptr
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$10240, %esi                    ## imm = 0x2800
	xorl	%ecx, %ecx
	callq	_inet6_rth_init
	leaq	l_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_checkptr
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$10240, %esi                    ## imm = 0x2800
	movl	$127, %ecx
	callq	_inet6_rth_init
	leaq	l_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_checkptr
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$10240, %esi                    ## imm = 0x2800
	movl	$-1, %ecx
	callq	_inet6_rth_init
	leaq	l_.str.4(%rip), %rdx
	xorl	%edi, %edi
	movq	%rax, %rsi
	callq	_checkptr
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$10240, %esi                    ## imm = 0x2800
	movl	$128, %ecx
	callq	_inet6_rth_init
	leaq	l_.str.5(%rip), %rdx
	xorl	%edi, %edi
	movq	%rax, %rsi
	callq	_checkptr
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$10256, %rsp                    ## imm = 0x2810
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"test_rth_init"

	.comm	_IPV6_RTHDR_TYPE_0,4,2          ## @IPV6_RTHDR_TYPE_0
	.section	__TEXT,__const
l_.str.1:                               ## @.str.1
	.asciz	"buffer too small\000"

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

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

l_.str.4:                               ## @.str.4
	.asciz	"negative number of segments\000"

l_.str.5:                               ## @.str.5
	.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_init                  ; -- Begin function test_rth_init
	.p2align	2
_test_rth_init:                         ; @test_rth_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
	mov	w9, #10256
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #2, lsl #12             ; =8192
	sub	sp, sp, #2064
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #15
	bl	_set_funcname
Lloh7:
	adrp	x19, _IPV6_RTHDR_TYPE_0@GOTPAGE
Lloh8:
	ldr	x19, [x19, _IPV6_RTHDR_TYPE_0@GOTPAGEOFF]
	ldr	w2, [x19]
	add	x0, sp, #8
	mov	w1, #10
	mov	w3, #100
	bl	_inet6_rth_init
	mov	x1, x0
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_checkptr
	ldr	w2, [x19]
	add	x0, sp, #8
	mov	w1, #10240
	mov	w3, #0
	bl	_inet6_rth_init
	mov	x1, x0
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #8
	bl	_checkptr
	ldr	w2, [x19]
	add	x0, sp, #8
	mov	w1, #10240
	mov	w3, #127
	bl	_inet6_rth_init
	mov	x1, x0
Lloh13:
	adrp	x2, l_.str.3@PAGE
Lloh14:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #8
	bl	_checkptr
	ldr	w2, [x19]
	add	x0, sp, #8
	mov	w1, #10240
	mov	w3, #-1
	bl	_inet6_rth_init
	mov	x1, x0
Lloh15:
	adrp	x2, l_.str.4@PAGE
Lloh16:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, #0
	bl	_checkptr
	ldr	w2, [x19]
	add	x0, sp, #8
	mov	w1, #10240
	mov	w3, #128
	bl	_inet6_rth_init
	mov	x1, x0
Lloh17:
	adrp	x2, l_.str.5@PAGE
Lloh18:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, #0
	bl	_checkptr
	ldur	x8, [x29, #-24]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	add	sp, sp, #2, lsl #12             ; =8192
	add	sp, sp, #2064
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test_rth_init"

	.comm	_IPV6_RTHDR_TYPE_0,4,2          ; @IPV6_RTHDR_TYPE_0
	.section	__TEXT,__const
l_.str.1:                               ; @.str.1
	.asciz	"buffer too small\000"

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

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

l_.str.4:                               ; @.str.4
	.asciz	"negative number of segments\000"

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

.subsections_via_symbols
