	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip6_hopopts_input
_ip6_hopopts_input:                     ## @ip6_hopopts_input
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	(%rdx), %rdi
	movslq	(%rcx), %r14
	leal	4(%r14), %esi
	callq	_m_pullup
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	_caddr_t@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mtod
	movl	(%rax,%r14), %r12d
	leal	(%r14,%r12,8), %r15d
	addl	$8, %r15d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_m_pullup
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	shll	$3, %r12d
	movq	_caddr_t@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mtod
	orl	$4, %r12d
	leaq	(%rax,%r14), %rsi
	addq	$16, %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_ip6_process_hopopts
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	js	LBB0_5
## %bb.6:
	movl	%r15d, (%r13)
	jmp	LBB0_7
LBB0_1:
	movq	_ip6s_exthdrtoolong@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IP6STAT_INC
	movl	$-1, %eax
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_3:
	movq	_ip6s_exthdrtoolong@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IP6STAT_INC
LBB0_5:
	movl	$-1, %eax
	xorl	%ebx, %ebx
LBB0_7:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_8:
	movq	%rbx, (%r15)
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ip6s_exthdrtoolong,4,2         ## @ip6s_exthdrtoolong
	.comm	_caddr_t,4,2                    ## @caddr_t
	.no_dead_strip	_ip6_hopopts_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip6_hopopts_input
_ip6_hopopts_input:                     ; @ip6_hopopts_input
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x19, x2
	mov	x23, x1
	mov	x22, x0
	ldr	x0, [x2]
	ldrsw	x25, [x3]
	add	w1, w25, #4
	bl	_m_pullup
	mov	x21, x0
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x26, _caddr_t@GOTPAGE
Lloh1:
	ldr	x26, [x26, _caddr_t@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x21
	bl	_mtod
	ldr	w8, [x0, x25]
	lsl	w27, w8, #3
	add	w8, w25, w27
	add	w24, w8, #8
	mov	x0, x21
	mov	x1, x24
	bl	_m_pullup
	mov	x21, x0
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w1, [x26]
	mov	x0, x21
	bl	_mtod
	add	x8, x0, x25
	orr	w2, w27, #0x4
	add	x1, x8, #16
	mov	x0, x21
	mov	x3, x23
	mov	x4, x22
	bl	_ip6_process_hopopts
	tbnz	x0, #63, LBB0_5
; %bb.3:
	mov	w0, #0
	str	w24, [x20]
	b	LBB0_7
LBB0_4:
Lloh2:
	adrp	x8, _ip6s_exthdrtoolong@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ip6s_exthdrtoolong@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_IP6STAT_INC
	b	LBB0_6
LBB0_5:
	mov	x21, #0
LBB0_6:
	mov	w0, #-1
LBB0_7:
	str	x21, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ip6s_exthdrtoolong,4,2         ; @ip6s_exthdrtoolong
	.comm	_caddr_t,4,2                    ; @caddr_t
	.no_dead_strip	_ip6_hopopts_input
.subsections_via_symbols
