	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_hip
_parse_hip:                             ## @parse_hip
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_SIERRA_NET_HIP_HDR_LEN@GOTPCREL(%rip), %r15
	cmpq	%rsi, (%r15)
	jle	LBB0_2
LBB0_1:
	movq	_EPROTO@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_2:
	movq	%rdx, %rbx
	movq	%rdi, %rsi
	leaq	8(%rdx), %rdi
	callq	_save16bit
	leaq	24(%rbx), %rdi
	movq	%rax, %rsi
	callq	_save8bit
	leaq	28(%rbx), %rdi
	movq	%rax, %rsi
	callq	_save8bit
	movl	24(%rbx), %r12d
	movl	%r12d, %ecx
	andl	$127, %ecx
	movl	%ecx, 24(%rbx)
	movq	_SIERRA_NET_HIP_EXTENDEDID@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpl	(%rdx), %ecx
	sete	%sil
	movl	%esi, 16(%rbx)
	jne	LBB0_5
## %bb.3:
	movq	_SIERRA_NET_HIP_EXT_HDR_LEN@GOTPCREL(%rip), %r15
	cmpq	%r14, (%r15)
	jg	LBB0_1
## %bb.4:
	leaq	16(%rbx), %rdi
	andl	$16383, 12(%rbx)                ## imm = 0x3FFF
	movq	%rax, %rsi
	callq	_save16bit
	leaq	20(%rbx), %rax
	movl	$1023, %ecx                     ## imm = 0x3FF
	jmp	LBB0_6
LBB0_5:
	leaq	12(%rbx), %rax
	movl	$2047, %ecx                     ## imm = 0x7FF
LBB0_6:
	andl	%ecx, (%rax)
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	testb	$-128, %r12b
	jne	LBB0_8
## %bb.7:
	movl	12(%rbx), %ecx
	jmp	LBB0_9
LBB0_8:
	incq	%rax
	movq	%rax, (%rbx)
	movl	12(%rbx), %ecx
	decl	%ecx
	movl	%ecx, 12(%rbx)
LBB0_9:
	movslq	%ecx, %rcx
	addq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%r14, %rcx
	jle	LBB0_12
## %bb.10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_11:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIERRA_NET_HIP_HDR_LEN,8,3     ## @SIERRA_NET_HIP_HDR_LEN
	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_SIERRA_NET_HIP_EXTENDEDID,4,2  ## @SIERRA_NET_HIP_EXTENDEDID
	.comm	_SIERRA_NET_HIP_EXT_HDR_LEN,8,3 ## @SIERRA_NET_HIP_EXT_HDR_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_parse_hip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_hip
_parse_hip:                             ; @parse_hip
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
Lloh0:
	adrp	x8, _SIERRA_NET_HIP_HDR_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIERRA_NET_HIP_HDR_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.le	LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _EPROTO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	mov	x20, x2
	mov	x1, x0
	add	x0, x2, #8
	bl	_save16bit
	mov	x1, x0
	add	x0, x20, #24
	bl	_save8bit
	mov	x1, x0
	add	x0, x20, #28
	bl	_save8bit
	mov	x1, x0
	ldr	w21, [x20, #24]
	and	w8, w21, #0x7f
	str	w8, [x20, #24]
Lloh5:
	adrp	x9, _SIERRA_NET_HIP_EXTENDEDID@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SIERRA_NET_HIP_EXTENDEDID@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w8, eq
	mov	x0, x20
	str	w8, [x0, #16]!
	b.ne	LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _SIERRA_NET_HIP_EXT_HDR_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIERRA_NET_HIP_EXT_HDR_LEN@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x19
	b.gt	LBB0_1
; %bb.4:
	ldr	w8, [x20, #12]
	and	w8, w8, #0x3fff
	str	w8, [x20, #12]
	bl	_save16bit
	add	x8, x20, #20
Lloh11:
	adrp	x9, _SIERRA_NET_HIP_EXT_HDR_LEN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SIERRA_NET_HIP_EXT_HDR_LEN@GOTPAGEOFF]
	mov	w10, #1023
	b	LBB0_6
LBB0_5:
	add	x8, x20, #12
Lloh13:
	adrp	x9, _SIERRA_NET_HIP_HDR_LEN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SIERRA_NET_HIP_HDR_LEN@GOTPAGEOFF]
	mov	w10, #2047
LBB0_6:
	ldr	w11, [x8]
	and	w10, w11, w10
	str	w10, [x8]
	ldr	x8, [x9]
	str	x8, [x20]
	tbnz	w21, #7, LBB0_8
; %bb.7:
	ldr	w9, [x20, #12]
	b	LBB0_9
LBB0_8:
	add	x8, x8, #1
	str	x8, [x20]
	ldr	w9, [x20, #12]
	sub	w9, w9, #1
	str	w9, [x20, #12]
LBB0_9:
	add	x8, x8, w9, sxtw
	cmp	x8, x19
	b.le	LBB0_13
; %bb.10:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SIERRA_NET_HIP_HDR_LEN,8,3     ; @SIERRA_NET_HIP_HDR_LEN
	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_SIERRA_NET_HIP_EXTENDEDID,4,2  ; @SIERRA_NET_HIP_EXTENDEDID
	.comm	_SIERRA_NET_HIP_EXT_HDR_LEN,8,3 ; @SIERRA_NET_HIP_EXT_HDR_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_parse_hip
.subsections_via_symbols
