	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inp_setmoptions                ## -- Begin function inp_setmoptions
	.p2align	4, 0x90
_inp_setmoptions:                       ## @inp_setmoptions
	.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	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	_IPPROTO_DIVERT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_3
## %bb.1:
	movq	%rdi, %r14
	movq	8(%rax), %rax
	movq	_SOCK_RAW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_32
LBB0_4:
	movl	(%rsi), %eax
	addl	$-128, %eax
	cmpl	$16, %eax
	ja	LBB0_29
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_27:
	movq	%r14, %rdi
	callq	_inp_block_unblock_source
	movl	%eax, %ebx
	jmp	LBB0_31
LBB0_26:
	movq	%r14, %rdi
	callq	_inp_leave_group
	movl	%eax, %ebx
	jmp	LBB0_31
LBB0_25:
	movq	%r14, %rdi
	callq	_inp_join_group
	movl	%eax, %ebx
	jmp	LBB0_31
LBB0_29:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_6:
	leaq	-20(%rbp), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	movl	$4, %edx
	movl	$4, %ecx
	callq	_sooptcopyin
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.7:
	movl	-20(%rbp), %edi
	callq	_legal_vif_num
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	cmpl	$-1, -20(%rbp)
	jne	LBB0_9
LBB0_10:
	movq	%r14, %rdi
	callq	_inp_findmoptions
	movl	-20(%rbp), %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_11
LBB0_13:
	cmpl	$4, 4(%rsi)
	jne	LBB0_15
## %bb.14:
	leaq	-20(%rbp), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	movl	$4, %edx
	movl	$4, %ecx
	callq	_sooptcopyin
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
	jmp	LBB0_18
LBB0_19:
	cmpl	$4, 4(%rsi)
	jne	LBB0_21
## %bb.20:
	leaq	-20(%rbp), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	movl	$4, %edx
	movl	$4, %ecx
	callq	_sooptcopyin
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
	jmp	LBB0_23
LBB0_12:
	movq	%r14, %rdi
	callq	_inp_set_multicast_if
	movl	%eax, %ebx
	jmp	LBB0_31
LBB0_28:
	movq	%r14, %rdi
	callq	_inp_set_source_filters
	movl	%eax, %ebx
	jmp	LBB0_31
LBB0_15:
	leaq	-24(%rbp), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	movl	$4, %edx
	movl	$4, %ecx
	callq	_sooptcopyin
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.16:
	movl	-24(%rbp), %eax
	cmpl	$256, %eax                      ## imm = 0x100
	jl	LBB0_17
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_30:
	movl	(%rax), %ebx
	jmp	LBB0_31
LBB0_21:
	leaq	-24(%rbp), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	movl	$4, %edx
	movl	$4, %ecx
	callq	_sooptcopyin
	testl	%eax, %eax
	je	LBB0_22
## %bb.24:
	movl	%eax, %ebx
	jmp	LBB0_31
LBB0_22:
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
LBB0_23:
	movq	%r14, %rdi
	callq	_inp_findmoptions
	xorl	%ecx, %ecx
	cmpl	$0, -20(%rbp)
	setne	%cl
	movl	%ecx, 8(%rax)
	jmp	LBB0_11
LBB0_17:
	movl	%eax, -20(%rbp)
LBB0_18:
	movq	%r14, %rdi
	callq	_inp_findmoptions
	movl	-20(%rbp), %ecx
	movl	%ecx, 4(%rax)
LBB0_11:
	movq	%r14, %rdi
	callq	_INP_WUNLOCK
	xorl	%ebx, %ebx
LBB0_31:
	movq	%r14, %rdi
	callq	_INP_UNLOCK_ASSERT
LBB0_32:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
LJTI0_0:
	.long	L0_0_set_27
	.long	L0_0_set_26
	.long	L0_0_set_26
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_6
	.long	L0_0_set_13
	.long	L0_0_set_19
	.long	L0_0_set_12
	.long	L0_0_set_28
	.long	L0_0_set_26
	.long	L0_0_set_26
	.long	L0_0_set_27
	.long	L0_0_set_25
	.long	L0_0_set_25
	.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	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inp_setmoptions                ; -- Begin function inp_setmoptions
	.p2align	2
_inp_setmoptions:                       ; @inp_setmoptions
	.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
	ldr	x9, [x0]
	ldr	x9, [x9]
	ldr	x10, [x9]
Lloh0:
	adrp	x11, _IPPROTO_DIVERT@GOTPAGE
Lloh1:
	ldr	x11, [x11, _IPPROTO_DIVERT@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	b.eq	LBB0_5
; %bb.1:
	ldr	x9, [x9, #8]
Lloh3:
	adrp	x10, _SOCK_RAW@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SOCK_RAW@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _SOCK_DGRAM@GOTPAGE
Lloh7:
	ldr	x11, [x11, _SOCK_DGRAM@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_5
; %bb.2:
	mov	x8, x1
	mov	x19, x0
	ldr	w9, [x1]
	sub	w9, w9, #128
	cmp	w9, #16
	b.hi	LBB0_8
; %bb.3:
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:
	mov	x0, x19
	mov	x1, x8
	bl	_inp_block_unblock_source
	mov	x20, x0
	b	LBB0_30
LBB0_5:
Lloh11:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	b	LBB0_31
LBB0_6:
	mov	x0, x19
	mov	x1, x8
	bl	_inp_leave_group
	mov	x20, x0
	b	LBB0_30
LBB0_7:
	mov	x0, x19
	mov	x1, x8
	bl	_inp_join_group
	mov	x20, x0
	b	LBB0_30
LBB0_8:
Lloh14:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_22
LBB0_9:
	add	x1, sp, #12
	mov	x0, x8
	mov	w2, #4
	mov	w3, #4
	bl	_sooptcopyin
	mov	x20, x0
	cbnz	w0, LBB0_30
; %bb.10:
	ldr	w0, [sp, #12]
	bl	_legal_vif_num
	cbnz	w0, LBB0_12
; %bb.11:
	ldr	w8, [sp, #12]
	cmn	w8, #1
	b.ne	LBB0_21
LBB0_12:
	mov	x0, x19
	bl	_inp_findmoptions
	ldr	w8, [sp, #12]
	str	w8, [x0]
	b	LBB0_29
LBB0_13:
	ldr	w9, [x8, #4]
	cmp	w9, #4
	b.ne	LBB0_19
; %bb.14:
	add	x1, sp, #12
	mov	x0, x8
	mov	w2, #4
	mov	w3, #4
	bl	_sooptcopyin
	mov	x20, x0
	cbnz	w0, LBB0_30
	b	LBB0_28
LBB0_15:
	ldr	w9, [x8, #4]
	cmp	w9, #4
	b.ne	LBB0_23
; %bb.16:
	add	x1, sp, #12
	mov	x0, x8
	mov	w2, #4
	mov	w3, #4
	bl	_sooptcopyin
	mov	x20, x0
	cbnz	w0, LBB0_30
	b	LBB0_26
LBB0_17:
	mov	x0, x19
	mov	x1, x8
	bl	_inp_set_multicast_if
	mov	x20, x0
	b	LBB0_30
LBB0_18:
	mov	x0, x19
	mov	x1, x8
	bl	_inp_set_source_filters
	mov	x20, x0
	b	LBB0_30
LBB0_19:
	add	x1, sp, #8
	mov	x0, x8
	mov	w2, #4
	mov	w3, #4
	bl	_sooptcopyin
	mov	x20, x0
	cbnz	w0, LBB0_30
; %bb.20:
	ldr	w8, [sp, #8]
	cmp	w8, #256
	b.lt	LBB0_27
LBB0_21:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_22:
	ldr	w20, [x8]
	b	LBB0_30
LBB0_23:
	add	x1, sp, #8
	mov	x0, x8
	mov	w2, #4
	mov	w3, #4
	bl	_sooptcopyin
	cbz	w0, LBB0_25
; %bb.24:
	mov	x20, x0
	b	LBB0_30
LBB0_25:
	ldr	w8, [sp, #8]
	str	w8, [sp, #12]
LBB0_26:
	mov	x0, x19
	bl	_inp_findmoptions
	ldr	w8, [sp, #12]
	cmp	w8, #0
	cset	w8, ne
	str	w8, [x0, #8]
	b	LBB0_29
LBB0_27:
	str	w8, [sp, #12]
LBB0_28:
	mov	x0, x19
	bl	_inp_findmoptions
	ldr	w8, [sp, #12]
	str	w8, [x0, #4]
LBB0_29:
	mov	x0, x19
	bl	_INP_WUNLOCK
	mov	w20, #0
LBB0_30:
	mov	x0, x19
	bl	_INP_UNLOCK_ASSERT
LBB0_31:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
	.byte	(LBB0_17-LBB0_4)>>2
	.byte	(LBB0_18-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_7-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	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
