	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_icmpv6_err_convert             ## -- Begin function icmpv6_err_convert
	.p2align	4, 0x90
_icmpv6_err_convert:                    ## @icmpv6_err_convert
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	movq	_EPROTO@GOTPCREL(%rip), %r8
	movl	(%r8), %eax
	movl	%eax, (%rdx)
	xorl	%eax, %eax
	addl	$-128, %edi
	cmpl	$3, %edi
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rdi,4), %rdi
	addq	%rcx, %rdi
	jmpq	*%rdi
LBB0_6:
	movq	_EHOSTUNREACH@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movl	(%r8), %eax
	movl	%eax, (%rdx)
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_ICMPV6_PORT_UNREACH@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpl	%esi, (%rcx)
	jl	LBB0_8
## %bb.3:
	movq	_tab_unreach@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%esi, %rcx
	movl	(%rax,%rcx,8), %esi
	movl	%esi, (%rdx)
	movl	4(%rax,%rcx,8), %eax
	popq	%rbp
	retq
LBB0_4:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %ecx
	movl	%ecx, (%rdx)
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_ICMPV6_PORT_UNREACH,4,2        ## @ICMPV6_PORT_UNREACH
	.comm	_tab_unreach,8,3                ## @tab_unreach
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_EHOSTUNREACH,4,2               ## @EHOSTUNREACH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_icmpv6_err_convert             ; -- Begin function icmpv6_err_convert
	.p2align	2
_icmpv6_err_convert:                    ; @icmpv6_err_convert
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _EPROTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
	ldr	w9, [x8]
	str	w9, [x2]
	sub	w9, w0, #128
	cmp	w9, #3
	b.hi	LBB0_6
; %bb.1:
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	mov	w0, #0
Lloh4:
	adrp	x8, _EHOSTUNREACH@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EHOSTUNREACH@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
	ldr	w8, [x8]
	str	w8, [x2]
	mov	w0, #1
	ret
LBB0_4:
Lloh6:
	adrp	x8, _ICMPV6_PORT_UNREACH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICMPV6_PORT_UNREACH@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ge	LBB0_9
; %bb.5:
	mov	w0, #1
	ret
LBB0_6:
	mov	w0, #0
	ret
LBB0_7:
	mov	w0, #0
Lloh9:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	str	w8, [x2]
	ret
LBB0_9:
Lloh11:
	adrp	x8, _tab_unreach@GOTPAGE
Lloh12:
	ldr	x8, [x8, _tab_unreach@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x8, x8, w1, sxtw #3
	ldr	w9, [x8]
	str	w9, [x2]
	ldr	w0, [x8, #4]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
                                        ; -- End function
	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_ICMPV6_PORT_UNREACH,4,2        ; @ICMPV6_PORT_UNREACH
	.comm	_tab_unreach,8,3                ; @tab_unreach
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_EHOSTUNREACH,4,2               ; @EHOSTUNREACH
.subsections_via_symbols
