	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ups_apply_patch
_ups_apply_patch:                       ## @ups_apply_patch
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -112(%rbp)
	movq	%rdx, -104(%rbp)
	movq	(%r8), %rax
	movq	%rax, -96(%rbp)
	movl	%esi, -88(%rbp)
	movl	%ecx, -84(%rbp)
	movl	(%r9), %eax
	movl	%eax, -80(%rbp)
	movq	$0, -76(%rbp)
	movl	$0, -68(%rbp)
	pcmpeqd	%xmm0, %xmm0
	movdqu	%xmm0, -64(%rbp)
	movq	$-1, -48(%rbp)
	movq	_PATCH_PATCH_INVALID@GOTPCREL(%rip), %r15
	cmpl	$18, %esi
	jb	LBB0_36
## %bb.1:
	movq	%r9, %r12
	movq	%r8, %rbx
	leaq	-112(%rbp), %rdi
	callq	_ups_patch_read
	cmpq	$85, %rax
	jne	LBB0_36
## %bb.2:
	leaq	-112(%rbp), %rdi
	callq	_ups_patch_read
	cmpq	$80, %rax
	jne	LBB0_36
## %bb.3:
	leaq	-112(%rbp), %rdi
	callq	_ups_patch_read
	cmpq	$83, %rax
	jne	LBB0_36
## %bb.4:
	leaq	-112(%rbp), %rdi
	callq	_ups_patch_read
	cmpq	$49, %rax
	jne	LBB0_36
## %bb.5:
	leaq	-112(%rbp), %r14
	movq	%r14, %rdi
	callq	_ups_decode
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_ups_decode
	movl	-84(%rbp), %ecx
	movq	_PATCH_SOURCE_INVALID@GOTPCREL(%rip), %rdx
	cmpl	%r13d, %ecx
	je	LBB0_8
## %bb.6:
	cmpl	%eax, %ecx
	je	LBB0_8
## %bb.7:
	movq	%rdx, %r15
	jmp	LBB0_36
LBB0_8:
	cmpl	%r13d, %ecx
	movl	%r13d, %ecx
	cmovel	%eax, %ecx
	movl	%ecx, (%r12)
	cmpl	%ecx, -80(%rbp)
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	jae	LBB0_12
## %bb.9:
	movl	%ecx, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r14
	movq	(%rbx), %rdi
	callq	_free
	movq	%r14, (%rbx)
	movq	%r14, -96(%rbp)
	movl	(%r12), %ecx
LBB0_12:
	movl	%ecx, -80(%rbp)
	movl	-88(%rbp), %eax
	addl	$-12, %eax
	cmpl	%eax, -76(%rbp)
	jae	LBB0_18
## %bb.13:
	leaq	-112(%rbp), %r14
	.p2align	4, 0x90
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
	movq	%r14, %rdi
	callq	_ups_decode
	movq	%rax, %rbx
	testl	%ebx, %ebx
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	callq	_ups_source_read
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ups_target_write
	decl	%ebx
	jne	LBB0_15
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	callq	_ups_patch_read
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_ups_source_read
	xorl	%ebx, %eax
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ups_target_write
	testl	%ebx, %ebx
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	-88(%rbp), %eax
	addl	$-12, %eax
	cmpl	%eax, -76(%rbp)
	jb	LBB0_14
LBB0_18:
	movl	-72(%rbp), %eax
	cmpl	-84(%rbp), %eax
	jae	LBB0_21
## %bb.19:
	leaq	-112(%rbp), %rbx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ups_source_read
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ups_target_write
	movl	-72(%rbp), %eax
	cmpl	-84(%rbp), %eax
	jb	LBB0_20
LBB0_21:
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	movl	-68(%rbp), %eax
	cmpl	-80(%rbp), %eax
	jae	LBB0_24
## %bb.22:
	leaq	-112(%rbp), %rbx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ups_source_read
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ups_target_write
	movl	-68(%rbp), %eax
	cmpl	-80(%rbp), %eax
	jb	LBB0_23
LBB0_24:
	leaq	-112(%rbp), %r14
	movq	%r14, %rdi
	callq	_ups_patch_read
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_ups_patch_read
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_ups_patch_read
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_ups_patch_read
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_ups_patch_read
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_ups_patch_read
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_ups_patch_read
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_ups_patch_read
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	-64(%rbp), %r12
	movdqu	-56(%rbp), %xmm0
	pcmpeqd	%xmm1, %xmm1
	pxor	%xmm0, %xmm1
	movdqu	%xmm1, -56(%rbp)
	movq	%r14, %rdi
	callq	_ups_patch_read
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_ups_patch_read
	movq	%rax, %r13
	shlq	$8, %r13
	orq	%rbx, %r13
	movq	%r14, %rdi
	callq	_ups_patch_read
	movq	%rax, %rbx
	shlq	$16, %rbx
	movq	%r14, %rdi
	callq	_ups_patch_read
	shlq	$24, %rax
	orq	%rbx, %rax
	orq	%r13, %rax
	notq	%r12
	cmpq	%r12, %rax
	jne	LBB0_36
## %bb.25:
	movq	-192(%rbp), %rsi                ## 8-byte Reload
	shlq	$8, %rsi
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	shlq	$16, %rcx
	movq	-176(%rbp), %rax                ## 8-byte Reload
	shlq	$24, %rax
	orq	%rcx, %rax
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	shlq	$8, %rdi
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	shlq	$16, %rdx
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	shlq	$24, %rcx
	orq	%rdx, %rcx
	orq	-184(%rbp), %rsi                ## 8-byte Folded Reload
	orq	%rax, %rsi
	orq	-160(%rbp), %rdi                ## 8-byte Folded Reload
	orq	%rcx, %rdi
	movq	-56(%rbp), %rcx
	movl	-84(%rbp), %eax
	cmpq	%rsi, %rcx
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	jne	LBB0_30
## %bb.26:
	cmpl	%edx, %eax
	jne	LBB0_30
## %bb.27:
	movq	-48(%rbp), %rax
	movq	_PATCH_TARGET_INVALID@GOTPCREL(%rip), %r15
	movq	%r15, %rcx
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	cmpl	%edx, -80(%rbp)
	jne	LBB0_29
## %bb.28:
	movq	_PATCH_SUCCESS@GOTPCREL(%rip), %rcx
LBB0_29:
	cmpq	%rdi, %rax
	jmp	LBB0_35
LBB0_30:
	movq	_PATCH_SOURCE_INVALID@GOTPCREL(%rip), %r15
	cmpq	%rdi, %rcx
	jne	LBB0_36
## %bb.31:
	cmpl	-128(%rbp), %eax                ## 4-byte Folded Reload
	jne	LBB0_36
## %bb.32:
	movq	-48(%rbp), %rax
	movq	_PATCH_TARGET_INVALID@GOTPCREL(%rip), %r15
	movq	%r15, %rcx
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	cmpl	%edx, -80(%rbp)
	jne	LBB0_34
## %bb.33:
	movq	_PATCH_SUCCESS@GOTPCREL(%rip), %rcx
LBB0_34:
	cmpq	%rsi, %rax
LBB0_35:
	cmoveq	%rcx, %r15
	jmp	LBB0_36
LBB0_10:
	movq	_PATCH_TARGET_ALLOC_FAILED@GOTPCREL(%rip), %r15
LBB0_36:
	movl	(%r15), %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PATCH_PATCH_INVALID,4,2        ## @PATCH_PATCH_INVALID
	.comm	_PATCH_SOURCE_INVALID,4,2       ## @PATCH_SOURCE_INVALID
	.comm	_PATCH_TARGET_ALLOC_FAILED,4,2  ## @PATCH_TARGET_ALLOC_FAILED
	.comm	_PATCH_SUCCESS,4,2              ## @PATCH_SUCCESS
	.comm	_PATCH_TARGET_INVALID,4,2       ## @PATCH_TARGET_INVALID
	.no_dead_strip	_ups_apply_patch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ups_apply_patch
_ups_apply_patch:                       ; @ups_apply_patch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	stp	x0, x2, [sp, #24]
	ldr	x8, [x4]
	str	x8, [sp, #40]
	stp	w1, w3, [sp, #48]
	ldr	w8, [x5]
	stp	w8, wzr, [sp, #56]
	mov	x8, #-1
	stp	xzr, x8, [sp, #64]
	stp	x8, x8, [sp, #80]
	cmp	w1, #18
	b.lo	LBB0_24
; %bb.1:
	mov	x21, x5
	mov	x22, x4
	add	x0, sp, #24
	bl	_ups_patch_read
	cmp	x0, #85
	b.ne	LBB0_24
; %bb.2:
	add	x0, sp, #24
	bl	_ups_patch_read
	cmp	x0, #80
	b.ne	LBB0_24
; %bb.3:
	add	x0, sp, #24
	bl	_ups_patch_read
	cmp	x0, #83
	b.ne	LBB0_24
; %bb.4:
	add	x0, sp, #24
	bl	_ups_patch_read
	cmp	x0, #49
	b.ne	LBB0_24
; %bb.5:
	add	x0, sp, #24
	bl	_ups_decode
	mov	x19, x0
	add	x0, sp, #24
	bl	_ups_decode
	mov	x20, x0
	ldr	w8, [sp, #52]
	cmp	w8, w19
	b.eq	LBB0_8
; %bb.6:
	cmp	w8, w20
	b.eq	LBB0_8
; %bb.7:
Lloh0:
	adrp	x8, _PATCH_SOURCE_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PATCH_SOURCE_INVALID@GOTPAGEOFF]
	b	LBB0_25
LBB0_8:
	cmp	w8, w19
	csel	w0, w20, w19, eq
	str	w0, [x21]
	ldr	w8, [sp, #56]
	cmp	w8, w0
	b.hs	LBB0_11
; %bb.9:
	bl	_malloc
	cbz	x0, LBB0_30
; %bb.10:
	mov	x23, x0
	ldr	x0, [x22]
	bl	_free
	str	x23, [x22]
	str	x23, [sp, #40]
	ldr	w0, [x21]
LBB0_11:
	str	w0, [sp, #56]
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_15 Depth 2
	ldr	w8, [sp, #60]
	ldr	w9, [sp, #48]
	sub	w9, w9, #12
	cmp	w8, w9
	b.hs	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x0, sp, #24
	bl	_ups_decode
	mov	x21, x0
	cbz	w21, LBB0_15
LBB0_14:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w21, w21, #1
	add	x0, sp, #24
	bl	_ups_source_read
	mov	x1, x0
	add	x0, sp, #24
	bl	_ups_target_write
	cbnz	w21, LBB0_14
LBB0_15:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #24
	bl	_ups_patch_read
	mov	x21, x0
	add	x0, sp, #24
	bl	_ups_source_read
	eor	w1, w0, w21
	add	x0, sp, #24
	bl	_ups_target_write
	cbnz	w21, LBB0_15
	b	LBB0_12
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x0, sp, #24
	bl	_ups_source_read
	mov	x1, x0
	add	x0, sp, #24
	bl	_ups_target_write
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #64]
	ldr	w9, [sp, #52]
	cmp	w8, w9
	b.lo	LBB0_16
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	bl	_ups_source_read
	mov	x1, x0
	add	x0, sp, #24
	bl	_ups_target_write
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #68]
	ldr	w9, [sp, #56]
	add	x0, sp, #24
	cmp	w8, w9
	b.lo	LBB0_18
; %bb.20:
	bl	_ups_patch_read
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	add	x0, sp, #24
	bl	_ups_patch_read
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	add	x0, sp, #24
	bl	_ups_patch_read
	mov	x23, x0
	add	x0, sp, #24
	bl	_ups_patch_read
	mov	x24, x0
	add	x0, sp, #24
	bl	_ups_patch_read
	mov	x25, x0
	add	x0, sp, #24
	bl	_ups_patch_read
	mov	x26, x0
	add	x0, sp, #24
	bl	_ups_patch_read
	mov	x27, x0
	add	x0, sp, #24
	bl	_ups_patch_read
	mov	x28, x0
	ldr	x22, [sp, #72]
	ldur	q0, [sp, #80]
	mvn.16b	v0, v0
	stur	q0, [sp, #80]
	add	x0, sp, #24
	bl	_ups_patch_read
	mov	x21, x0
	add	x0, sp, #24
	bl	_ups_patch_read
	orr	x21, x21, x0, lsl #8
	add	x0, sp, #24
	bl	_ups_patch_read
	orr	x21, x21, x0, lsl #16
	add	x0, sp, #24
	bl	_ups_patch_read
	orr	x8, x21, x0, lsl #24
	mvn	x9, x22
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.21:
	ldp	x9, x8, [sp, #8]                ; 16-byte Folded Reload
	orr	x8, x8, x9, lsl #8
	orr	x8, x8, x23, lsl #16
	orr	x9, x25, x26, lsl #8
	orr	x9, x9, x27, lsl #16
	orr	x10, x9, x28, lsl #24
	orr	x9, x8, x24, lsl #24
	ldr	x12, [sp, #80]
	ldr	w11, [sp, #52]
	cmp	x12, x9
	b.ne	LBB0_26
; %bb.22:
	cmp	w11, w19
	b.ne	LBB0_26
; %bb.23:
	ldr	x8, [sp, #88]
	ldr	w9, [sp, #56]
	cmp	w9, w20
	ccmp	x8, x10, #0, eq
	b	LBB0_29
LBB0_24:
Lloh2:
	adrp	x8, _PATCH_PATCH_INVALID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PATCH_PATCH_INVALID@GOTPAGEOFF]
LBB0_25:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_26:
Lloh4:
	adrp	x8, _PATCH_SOURCE_INVALID@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PATCH_SOURCE_INVALID@GOTPAGEOFF]
	cmp	x12, x10
	b.ne	LBB0_25
; %bb.27:
	cmp	w11, w20
	b.ne	LBB0_25
; %bb.28:
	ldr	x8, [sp, #88]
	ldr	w10, [sp, #56]
	cmp	w10, w19
	ccmp	x8, x9, #0, eq
LBB0_29:
Lloh6:
	adrp	x8, _PATCH_TARGET_INVALID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PATCH_TARGET_INVALID@GOTPAGEOFF]
Lloh8:
	adrp	x9, _PATCH_SUCCESS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PATCH_SUCCESS@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	b	LBB0_25
LBB0_30:
Lloh10:
	adrp	x8, _PATCH_TARGET_ALLOC_FAILED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PATCH_TARGET_ALLOC_FAILED@GOTPAGEOFF]
	b	LBB0_25
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PATCH_PATCH_INVALID,4,2        ; @PATCH_PATCH_INVALID
	.comm	_PATCH_SOURCE_INVALID,4,2       ; @PATCH_SOURCE_INVALID
	.comm	_PATCH_TARGET_ALLOC_FAILED,4,2  ; @PATCH_TARGET_ALLOC_FAILED
	.comm	_PATCH_SUCCESS,4,2              ; @PATCH_SUCCESS
	.comm	_PATCH_TARGET_INVALID,4,2       ; @PATCH_TARGET_INVALID
	.no_dead_strip	_ups_apply_patch
.subsections_via_symbols
