	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bootpc_tag_helper
_bootpc_tag_helper:                     ## @bootpc_tag_helper
	.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
	cmpl	$0, (%rdi)
	jne	LBB0_18
## %bb.1:
	movq	%rdi, %r15
	cmpl	$0, 4(%rdi)
	je	LBB0_2
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	testl	%edx, %edx
	jle	LBB0_18
## %bb.3:
	movq	%rsi, %rbx
	movslq	%edx, %rdx
	addq	%rsi, %rdx
	movq	_TAG_PAD@GOTPCREL(%rip), %rsi
	movq	_TAG_END@GOTPCREL(%rip), %r8
	movq	_TAG_MAXLEN@GOTPCREL(%rip), %r9
	movq	_TAG_OVERLOAD@GOTPCREL(%rip), %r10
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rbx
	cmpq	%rdx, %r14
	jae	LBB0_18
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rbx), %r14
	movzbl	(%rbx), %r13d
	cmpb	(%rsi), %r13b
	je	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	(%r8), %r13b
	je	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rdx, %r14
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movzbl	1(%rbx), %r12d
	leaq	(%rbx,%r12), %r14
	addq	$2, %r14
	cmpq	%rdx, %r14
	ja	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$2, %rbx
	cmpl	%ecx, %r13d
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rdi
	leaq	(%rdi,%r12), %rax
	cmpq	(%r9), %rax
	jg	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, 16(%r15)
	testl	%r12d, %r12d
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	addq	24(%r15), %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movq	_TAG_OVERLOAD@GOTPCREL(%rip), %r10
	movq	_TAG_MAXLEN@GOTPCREL(%rip), %r9
	movq	_TAG_END@GOTPCREL(%rip), %r8
	movq	_TAG_PAD@GOTPCREL(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	addq	8(%r15), %r12
	movq	%r12, %rax
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, 8(%r15)
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpb	(%r10), %r13b
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movzbl	(%rbx), %eax
	movb	%al, 32(%r15)
	jmp	LBB0_17
LBB0_8:
	movl	$1, 4(%r15)
	jmp	LBB0_18
LBB0_11:
	movl	$1, (%r15)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_TAG_PAD,1,0                    ## @TAG_PAD
	.comm	_TAG_END,1,0                    ## @TAG_END
	.comm	_TAG_MAXLEN,8,3                 ## @TAG_MAXLEN
	.comm	_TAG_OVERLOAD,1,0               ## @TAG_OVERLOAD
	.no_dead_strip	_bootpc_tag_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bootpc_tag_helper
_bootpc_tag_helper:                     ; @bootpc_tag_helper
	.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
	ldr	w8, [x0]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #4]
	cmp	w8, #0
	ccmp	w2, #1, #8, eq
	b.ge	LBB0_3
LBB0_2:
	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
LBB0_3:
	mov	x20, x3
Lloh0:
	adrp	x15, _TAG_PAD@GOTPAGE
Lloh1:
	ldr	x15, [x15, _TAG_PAD@GOTPAGEOFF]
Lloh2:
	adrp	x23, _TAG_END@GOTPAGE
Lloh3:
	ldr	x23, [x23, _TAG_END@GOTPAGEOFF]
	mov	w11, #1
	mov	x25, x1
Lloh4:
	adrp	x27, _TAG_MAXLEN@GOTPAGE
Lloh5:
	ldr	x27, [x27, _TAG_MAXLEN@GOTPAGEOFF]
Lloh6:
	adrp	x24, _TAG_OVERLOAD@GOTPAGE
Lloh7:
	ldr	x24, [x24, _TAG_OVERLOAD@GOTPAGEOFF]
	add	x28, x1, w2, sxtw
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x25
	cmp	x25, x28
	b.hs	LBB0_2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w26, [x25], #1
	ldrb	w8, [x15]
	cmp	w26, w8
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x23]
	cmp	w26, w8
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x25, x28
	b.hs	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w22, [x1, #1]
	add	x21, x1, #2
	add	x25, x21, x22
	cmp	x25, x28
	b.hi	LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w26, w20
	b.ne	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #8]
	ldr	x10, [x27]
	add	x8, x9, x22
	cmp	x8, x10
	b.gt	LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	str	w11, [x19, #16]
	cbz	w22, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #24]
	add	x0, x8, x9
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
Lloh8:
	adrp	x15, _TAG_PAD@GOTPAGE
Lloh9:
	ldr	x15, [x15, _TAG_PAD@GOTPAGEOFF]
	mov	w11, #1
	ldr	x8, [x19, #8]
	add	x8, x8, x22
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x8, [x19, #8]
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x24]
	cmp	w26, w8
	b.ne	LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x21]
	strb	w8, [x19, #32]
	b	LBB0_4
LBB0_16:
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_2
LBB0_17:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TAG_PAD,1,0                    ; @TAG_PAD
	.comm	_TAG_END,1,0                    ; @TAG_END
	.comm	_TAG_MAXLEN,8,3                 ; @TAG_MAXLEN
	.comm	_TAG_OVERLOAD,1,0               ; @TAG_OVERLOAD
	.no_dead_strip	_bootpc_tag_helper
.subsections_via_symbols
