	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip6proto_unregister            ## -- Begin function ip6proto_unregister
	.p2align	4, 0x90
_ip6proto_unregister:                   ## @ip6proto_unregister
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	testw	%bx, %bx
	jle	LBB0_2
## %bb.1:
	movq	_IPPROTO_MAX@GOTPCREL(%rip), %rax
	cmpw	%bx, (%rax)
	jle	LBB0_2
## %bb.3:
	movq	_PF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IPPROTO_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SOCK_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_pffindproto
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_ip6_protox@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movzwl	%bx, %edx
	movslq	(%rcx,%rdx,4), %rsi
	movq	_inet6sw@GOTPCREL(%rip), %rdi
	subq	(%rdi), %rax
	sarq	$2, %rax
	cmpq	%rsi, %rax
	jne	LBB0_7
## %bb.6:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_2:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_4:
	movq	_EPFNOSUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_7:
	movl	%eax, (%rcx,%rdx,4)
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_MAX,2,1                ## @IPPROTO_MAX
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_PF_INET6,4,2                   ## @PF_INET6
	.comm	_IPPROTO_RAW,4,2                ## @IPPROTO_RAW
	.comm	_SOCK_RAW,4,2                   ## @SOCK_RAW
	.comm	_EPFNOSUPPORT,4,2               ## @EPFNOSUPPORT
	.comm	_ip6_protox,8,3                 ## @ip6_protox
	.comm	_inet6sw,8,3                    ## @inet6sw
	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip6proto_unregister            ; -- Begin function ip6proto_unregister
	.p2align	2
_ip6proto_unregister:                   ; @ip6proto_unregister
	.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
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _IPPROTO_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPPROTO_MAX@GOTPAGEOFF]
Lloh2:
	ldrsh	w8, [x8]
	cmp	w8, w0
	b.le	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _PF_INET6@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PF_INET6@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _IPPROTO_RAW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPPROTO_RAW@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _SOCK_RAW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SOCK_RAW@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_pffindproto
	cbz	x0, LBB0_6
; %bb.3:
Lloh12:
	adrp	x8, _ip6_protox@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ip6_protox@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	and	x9, x19, #0xffff
	ldrsw	x11, [x8, x9, lsl #2]
Lloh15:
	adrp	x10, _inet6sw@GOTPAGE
Lloh16:
	ldr	x10, [x10, _inet6sw@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	sub	x10, x0, x10
	cmp	x11, x10, asr #2
	b.ne	LBB0_7
; %bb.4:
Lloh18:
	adrp	x8, _ENOENT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_5:
Lloh21:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_6:
Lloh24:
	adrp	x8, _EPFNOSUPPORT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EPFNOSUPPORT@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
	lsr	x10, x10, #2
	str	w10, [x8, x9, lsl #2]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_MAX,2,1                ; @IPPROTO_MAX
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_PF_INET6,4,2                   ; @PF_INET6
	.comm	_IPPROTO_RAW,4,2                ; @IPPROTO_RAW
	.comm	_SOCK_RAW,4,2                   ; @SOCK_RAW
	.comm	_EPFNOSUPPORT,4,2               ; @EPFNOSUPPORT
	.comm	_ip6_protox,8,3                 ; @ip6_protox
	.comm	_inet6sw,8,3                    ; @inet6sw
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
