	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipproto_register               ## -- Begin function ipproto_register
	.p2align	4, 0x90
_ipproto_register:                      ## @ipproto_register
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	testw	%bx, %bx
	jle	LBB0_13
## %bb.1:
	movq	_IPPROTO_MAX@GOTPCREL(%rip), %rax
	cmpw	%bx, (%rax)
	jle	LBB0_13
## %bb.2:
	movq	_PF_INET@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	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_3
## %bb.4:
	movq	_ip_protox@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movzwl	%bx, %ecx
	movslq	(%r8,%rcx,4), %rdx
	movq	_inetsw@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	subq	%rcx, %rax
	sarq	$4, %rax
	cmpq	%rdx, %rax
	jne	LBB0_5
## %bb.6:
	movq	_inetdomain@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	movq	8(%rdx), %rdx
	cmpq	%rax, %rdx
	jae	LBB0_13
## %bb.7:
	movq	(%r14), %rdi
	movq	%rdx, %rsi
	subq	%rcx, %rsi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	$16, %rdx
	addq	$16, %rsi
	cmpq	%rax, %rdx
	jae	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdx), %rcx
	cmpq	%rdi, (%rcx)
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movzwl	(%rdx), %ecx
	testw	%cx, %cx
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpw	%bx, %cx
	jne	LBB0_12
## %bb.11:
	shrq	$4, %rsi
	movswq	%bx, %rax
	movl	%esi, (%r8,%rax,4)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_13:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_3:
	movq	_EPFNOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_5:
	movq	_EEXIST@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_MAX,2,1                ## @IPPROTO_MAX
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_PF_INET,8,3                    ## @PF_INET
	.comm	_IPPROTO_RAW,4,2                ## @IPPROTO_RAW
	.comm	_SOCK_RAW,4,2                   ## @SOCK_RAW
	.comm	_EPFNOSUPPORT,4,2               ## @EPFNOSUPPORT
	.comm	_ip_protox,8,3                  ## @ip_protox
	.comm	_inetsw,8,3                     ## @inetsw
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_inetdomain,16,3                ## @inetdomain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipproto_register               ; -- Begin function ipproto_register
	.p2align	2
_ipproto_register:                      ; @ipproto_register
	.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_11
; %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_11
; %bb.2:
Lloh3:
	adrp	x20, _PF_INET@GOTPAGE
Lloh4:
	ldr	x20, [x20, _PF_INET@GOTPAGEOFF]
	ldr	x0, [x20]
Lloh5:
	adrp	x8, _IPPROTO_RAW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IPPROTO_RAW@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _SOCK_RAW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SOCK_RAW@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_pffindproto
	cbz	x0, LBB0_12
; %bb.3:
Lloh11:
	adrp	x8, _ip_protox@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ip_protox@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	and	x9, x19, #0xffff
	ldrsw	x9, [x8, x9, lsl #2]
Lloh14:
	adrp	x10, _inetsw@GOTPAGE
Lloh15:
	ldr	x10, [x10, _inetsw@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x10]
	sub	x10, x0, x11
	cmp	x9, x10, asr #4
	b.ne	LBB0_13
; %bb.4:
Lloh17:
	adrp	x10, _inetdomain@GOTPAGE
Lloh18:
	ldr	x10, [x10, _inetdomain@GOTPAGEOFF]
	ldp	x10, x9, [x10]
	cmp	x9, x10
	b.hs	LBB0_11
; %bb.5:
	ldr	x12, [x20]
	sub	x11, x9, x11
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x9, #16
	add	x11, x11, #16
	cmp	x9, x10
	b.hs	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x9, #8]
	ldr	x13, [x13]
	cmp	x13, x12
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrh	w13, [x9]
	cbz	w13, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w13, w19, uxth
	b.ne	LBB0_6
; %bb.10:
	mov	w0, #0
	lsr	x9, x11, #4
	str	w9, [x8, w19, sxtw #2]
	b	LBB0_15
LBB0_11:
Lloh19:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
Lloh21:
	adrp	x8, _EPFNOSUPPORT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EPFNOSUPPORT@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh23:
	adrp	x8, _EEXIST@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
LBB0_15:
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_MAX,2,1                ; @IPPROTO_MAX
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_PF_INET,8,3                    ; @PF_INET
	.comm	_IPPROTO_RAW,4,2                ; @IPPROTO_RAW
	.comm	_SOCK_RAW,4,2                   ; @SOCK_RAW
	.comm	_EPFNOSUPPORT,4,2               ; @EPFNOSUPPORT
	.comm	_ip_protox,8,3                  ; @ip_protox
	.comm	_inetsw,8,3                     ; @inetsw
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_inetdomain,16,3                ; @inetdomain
.subsections_via_symbols
