	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip6_getmoptions                ## -- Begin function ip6_getmoptions
	.p2align	4, 0x90
_ip6_getmoptions:                       ## @ip6_getmoptions
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_INP_WLOCK
	movq	(%r15), %rax
	movq	(%rax), %rcx
	movq	(%rcx), %rax
	movq	_IPPROTO_DIVERT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_3
## %bb.1:
	movq	8(%r15), %rax
	movq	8(%rcx), %rcx
	movq	_SOCK_RAW@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.2:
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_4
LBB0_3:
	movq	%r15, %rdi
	callq	_INP_WUNLOCK
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_22
LBB0_4:
	movl	(%r14), %ecx
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_8
## %bb.5:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_6:
	testq	%rax, %rax
	jne	LBB0_18
## %bb.7:
	movq	_in6_mcast_loop@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_8:
	movq	%r15, %rdi
	callq	_INP_WUNLOCK
	movq	_ENOPROTOOPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_21
LBB0_9:
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	(%rax), %ecx
LBB0_12:
	movl	%ecx, -28(%rbp)
	jmp	LBB0_19
LBB0_13:
	testq	%rax, %rax
	jne	LBB0_17
## %bb.14:
	movq	_V_ip6_defmcasthlim@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_15:
	testq	%rax, %rax
	je	LBB0_23
## %bb.16:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_in6p_get_source_filters
	jmp	LBB0_20
LBB0_17:
	addq	$4, %rax
LBB0_18:
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
LBB0_19:
	movq	%r15, %rdi
	callq	_INP_WUNLOCK
	leaq	-28(%rbp), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_sooptcopyout
LBB0_20:
	movl	%eax, %ebx
LBB0_21:
	movq	%r15, %rdi
	callq	_INP_UNLOCK_ASSERT
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_INP_WUNLOCK
	jmp	LBB0_21
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_13
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_IPPROTO_DIVERT,8,3             ## @IPPROTO_DIVERT
	.comm	_SOCK_RAW,8,3                   ## @SOCK_RAW
	.comm	_SOCK_DGRAM,8,3                 ## @SOCK_DGRAM
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_V_ip6_defmcasthlim,4,2         ## @V_ip6_defmcasthlim
	.comm	_in6_mcast_loop,4,2             ## @in6_mcast_loop
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_ENOPROTOOPT,4,2                ## @ENOPROTOOPT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip6_getmoptions                ; -- Begin function ip6_getmoptions
	.p2align	2
_ip6_getmoptions:                       ; @ip6_getmoptions
	.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
	mov	x19, x0
	bl	_INP_WLOCK
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _IPPROTO_DIVERT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IPPROTO_DIVERT@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_5
; %bb.1:
	ldr	x8, [x8, #8]
Lloh3:
	adrp	x9, _SOCK_RAW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SOCK_RAW@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _SOCK_DGRAM@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SOCK_DGRAM@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x20]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hi	LBB0_6
; %bb.3:
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x10, lJTI0_0@PAGE
Lloh10:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_4
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_4:
Lloh11:
	adrp	x9, _in6_mcast_loop@GOTPAGE
Lloh12:
	ldr	x9, [x9, _in6_mcast_loop@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x8, eq
	b	LBB0_10
LBB0_5:
	mov	x0, x19
	bl	_INP_WUNLOCK
Lloh13:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
	b	LBB0_14
LBB0_6:
	mov	x0, x19
	bl	_INP_WUNLOCK
Lloh16:
	adrp	x8, _ENOPROTOOPT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOPROTOOPT@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
	b	LBB0_13
LBB0_7:
	cbz	x8, LBB0_11
; %bb.8:
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_10
	b	LBB0_11
LBB0_9:
	add	x9, x8, #4
Lloh19:
	adrp	x10, _V_ip6_defmcasthlim@GOTPAGE
Lloh20:
	ldr	x10, [x10, _V_ip6_defmcasthlim@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
LBB0_10:
	ldr	w8, [x8]
LBB0_11:
	str	w8, [sp, #12]
	mov	x0, x19
	bl	_INP_WUNLOCK
	add	x1, sp, #12
	mov	x0, x20
	mov	w2, #4
	bl	_sooptcopyout
LBB0_12:
	mov	x20, x0
LBB0_13:
	mov	x0, x19
	bl	_INP_UNLOCK_ASSERT
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_15:
	cbz	x8, LBB0_17
; %bb.16:
	mov	x0, x19
	mov	x1, x20
	bl	_in6p_get_source_filters
	b	LBB0_12
LBB0_17:
Lloh21:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh23:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_INP_WUNLOCK
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
                                        ; -- End function
	.comm	_IPPROTO_DIVERT,8,3             ; @IPPROTO_DIVERT
	.comm	_SOCK_RAW,8,3                   ; @SOCK_RAW
	.comm	_SOCK_DGRAM,8,3                 ; @SOCK_DGRAM
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_V_ip6_defmcasthlim,4,2         ; @V_ip6_defmcasthlim
	.comm	_in6_mcast_loop,4,2             ; @in6_mcast_loop
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_ENOPROTOOPT,4,2                ; @ENOPROTOOPT
.subsections_via_symbols
