	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_fragments
_apply_fragments:                       ## @apply_fragments
	.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	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	(%rdx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpq	$0, 24(%rdx)
	je	LBB0_3
LBB0_12:
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_apply_binary                   ## TAILCALL
LBB0_1:
	movq	8(%rdx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, 24(%rdx)
	jne	LBB0_12
LBB0_3:
	movq	32(%rdx), %rbx
	xorl	%eax, %eax
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.4:
	movl	16(%rdx), %r12d
	movl	20(%rdx), %r15d
	movl	$1, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rbx), %rbx
	incl	%r14d
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	movl	%r14d, %r9d
	callq	_apply_one_fragment
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	(%rbx), %rdx
	movl	%eax, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_error
	cmpl	$0, (%r13)
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, 8(%rbx)
	jmp	LBB0_9
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_7:
	movl	$-1, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"patch failed: %s:%ld"

	.no_dead_strip	_apply_fragments
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_fragments
_apply_fragments:                       ; @apply_fragments
	.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	x19, x1
	mov	x20, x0
	ldr	x21, [x2]
	cbz	x21, LBB0_3
; %bb.1:
	ldr	x8, [x2, #24]
	cbz	x8, LBB0_4
LBB0_2:
	mov	x0, x20
	mov	x1, 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
	b	_apply_binary
LBB0_3:
	ldr	x21, [x2, #8]
	ldr	x8, [x2, #24]
	cbnz	x8, LBB0_2
LBB0_4:
	ldr	x22, [x2, #32]
	cbz	x22, LBB0_10
; %bb.5:
	ldp	w23, w24, [x2, #16]
	mov	w27, #1
Lloh0:
	adrp	x25, l_.str@PAGE
Lloh1:
	add	x25, x25, l_.str@PAGEOFF
	mov	w26, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x22, [x22, #16]
	add	w26, w26, #1
	cbz	x22, LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x24
	mov	x4, x23
	mov	x5, x26
	bl	_apply_one_fragment
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	bl	__
	ldr	x2, [x22]
	mov	x1, x21
	bl	_error
	ldr	w8, [x20]
	cbz	w8, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	str	w27, [x22, #8]
	b	LBB0_6
LBB0_10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	mov	w0, #-1
LBB0_12:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"patch failed: %s:%ld"

	.no_dead_strip	_apply_fragments
.subsections_via_symbols
