	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_icmp6_ctloutput                ## -- Begin function icmp6_ctloutput
	.p2align	4, 0x90
_icmp6_ctloutput:                       ## @icmp6_ctloutput
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_sotoinpcb
	movq	%rax, %r14
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %eax
	movl	4(%rbx), %esi
	movl	8(%rbx), %edx
	movl	12(%rbx), %ecx
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	xorl	%esi, %esi
	xorl	%edx, %edx
LBB0_3:
	movq	_IPPROTO_ICMPV6@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %eax
	jne	LBB0_4
## %bb.5:
	cmpl	$129, %esi
	je	LBB0_12
## %bb.6:
	xorl	%eax, %eax
	cmpl	$128, %esi
	jne	LBB0_16
## %bb.7:
	cmpl	$130, %edx
	jne	LBB0_14
## %bb.8:
	cmpl	$4, %ecx
	jne	LBB0_9
## %bb.10:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	movl	$4, %ecx
	callq	_sooptcopyin
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:
	movq	%r14, %rdi
	callq	_INP_WLOCK
	movq	(%r14), %rax
	movl	-32(%rbp), %ecx
	movl	%ecx, (%rax)
	movq	%r14, %rdi
	callq	_INP_WUNLOCK
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	cmpl	$130, %edx
	jne	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_INP_RLOCK
	movq	(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	%r14, %rdi
	callq	_INP_RUNLOCK
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_sooptcopyout
	jmp	LBB0_16
LBB0_14:
	movq	_ENOPROTOOPT@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
LBB0_16:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_ICMPV6,4,2             ## @IPPROTO_ICMPV6
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_ENOPROTOOPT,4,2                ## @ENOPROTOOPT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_icmp6_ctloutput                ; -- Begin function icmp6_ctloutput
	.p2align	2
_icmp6_ctloutput:                       ; @icmp6_ctloutput
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	bl	_sotoinpcb
	mov	x19, x0
	cbz	x20, LBB0_2
; %bb.1:
	ldp	w11, w10, [x20]
	ldp	w9, w8, [x20, #8]
	b	LBB0_3
LBB0_2:
	mov	w8, #0
	mov	w11, #0
	mov	w10, #0
	mov	w9, #0
LBB0_3:
Lloh0:
	adrp	x12, _IPPROTO_ICMPV6@GOTPAGE
Lloh1:
	ldr	x12, [x12, _IPPROTO_ICMPV6@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x12]
	cmp	w11, w12
	b.ne	LBB0_10
; %bb.4:
	cmp	w10, #129
	b.eq	LBB0_11
; %bb.5:
	cmp	w10, #128
	b.ne	LBB0_13
; %bb.6:
	cmp	w9, #130
	b.ne	LBB0_14
; %bb.7:
	cmp	w8, #4
	b.ne	LBB0_17
; %bb.8:
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #4
	mov	w3, #4
	bl	_sooptcopyin
	cbnz	w0, LBB0_16
; %bb.9:
	mov	x0, x19
	bl	_INP_WLOCK
	ldr	x8, [x19]
	ldr	w9, [sp, #8]
	str	w9, [x8]
	mov	x0, x19
	bl	_INP_WUNLOCK
	mov	w0, #0
	b	LBB0_16
LBB0_10:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
	cmp	w9, #130
	b.ne	LBB0_14
; %bb.12:
	mov	x0, x19
	bl	_INP_RLOCK
	ldr	x8, [x19]
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x19
	bl	_INP_RUNLOCK
	mov	x1, sp
	mov	x0, x20
	mov	w2, #4
	bl	_sooptcopyout
	b	LBB0_16
LBB0_13:
	mov	w0, #0
	b	LBB0_16
LBB0_14:
Lloh5:
	adrp	x8, _ENOPROTOOPT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOPROTOOPT@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_17:
Lloh7:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_ICMPV6,4,2             ; @IPPROTO_ICMPV6
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_ENOPROTOOPT,4,2                ; @ENOPROTOOPT
.subsections_via_symbols
