	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uw_update_context
_uw_update_context:                     ## @uw_update_context
	.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, %r15
	movq	%rdi, %r14
	movq	16(%rdi), %rsi
	movq	%rsi, 24(%rdi)
	movq	(%r15), %rax
	movq	16(%r15), %rcx
	movq	_UNW_REG_PSP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leaq	(%rdx,%rdx,2), %rdi
	cmpq	(%rcx,%rdi,8), %rax
	jle	LBB0_4
## %bb.1:
	movq	8(%rcx,%rdi,8), %r8
	movq	_UNW_WHERE_NONE@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %r8
	jne	LBB0_3
## %bb.2:
	addq	16(%rcx,%rdi,8), %rsi
	movq	%rsi, 16(%r14)
	jmp	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_uw_update_reg_address
	movq	(%r15), %rax
	movq	16(%r15), %rcx
LBB0_4:
	movq	_UNW_REG_PRI_UNAT_GR@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	leaq	(%rsi,%rsi,2), %rdx
	movq	(%rcx,%rdx,8), %rdi
	movq	_UNW_REG_PRI_UNAT_MEM@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdi, %rax
	jl	LBB0_8
## %bb.5:
	leaq	(%rdx,%rdx,2), %rbx
	movq	(%rcx,%rbx,8), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_7
## %bb.6:
	movq	%rsi, %rdx
	jmp	LBB0_8
LBB0_7:
	cmpq	%rdi, %rcx
	cmovleq	%rsi, %rdx
LBB0_8:
	movslq	%edx, %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_uw_update_reg_address
	movq	_UNW_REG_BSP@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_UNW_NUM_REGS@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rbx
	jge	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_uw_update_reg_address
	incq	%rbx
	cmpq	(%r12), %rbx
	jl	LBB0_9
LBB0_11:
	cmpl	$0, 8(%r15)
	jne	LBB0_13
## %bb.12:
	movq	(%r14), %rax
	movq	8(%r14), %rdi
	movl	(%rax), %esi
	shrl	$7, %esi
	andl	$127, %esi
	negq	%rsi
	callq	_ia64_rse_skip_regs
	movq	%rax, 8(%r14)
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UNW_REG_PSP,8,3                ## @UNW_REG_PSP
	.comm	_UNW_WHERE_NONE,8,3             ## @UNW_WHERE_NONE
	.comm	_UNW_REG_PRI_UNAT_GR,8,3        ## @UNW_REG_PRI_UNAT_GR
	.comm	_UNW_REG_PRI_UNAT_MEM,8,3       ## @UNW_REG_PRI_UNAT_MEM
	.comm	_UNW_REG_BSP,8,3                ## @UNW_REG_BSP
	.comm	_UNW_NUM_REGS,8,3               ## @UNW_NUM_REGS
	.no_dead_strip	_uw_update_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uw_update_context
_uw_update_context:                     ; @uw_update_context
	.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	x20, x1
	mov	x19, x0
	ldr	x10, [x0, #16]
	str	x10, [x0, #24]
	ldr	x8, [x1]
	ldr	x9, [x1, #16]
Lloh0:
	adrp	x11, _UNW_REG_PSP@GOTPAGE
Lloh1:
	ldr	x11, [x11, _UNW_REG_PSP@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x11]
	mov	w11, #24
	mul	x11, x2, x11
	ldr	x11, [x9, x11]
	cmp	x8, x11
	b.le	LBB0_4
; %bb.1:
	mov	w11, #24
	madd	x11, x2, x11, x9
	ldr	x11, [x11, #8]
Lloh3:
	adrp	x12, _UNW_WHERE_NONE@GOTPAGE
Lloh4:
	ldr	x12, [x12, _UNW_WHERE_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_3
; %bb.2:
	mov	w11, #24
	madd	x11, x2, x11, x9
	ldr	x11, [x11, #16]
	add	x10, x11, x10
	str	x10, [x19, #16]
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_uw_update_reg_address
	ldr	x8, [x20]
	ldr	x9, [x20, #16]
LBB0_4:
Lloh6:
	adrp	x10, _UNW_REG_PRI_UNAT_GR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _UNW_REG_PRI_UNAT_GR@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	mov	w11, #24
	mul	x11, x10, x11
	ldr	x11, [x9, x11]
Lloh9:
	adrp	x12, _UNW_REG_PRI_UNAT_MEM@GOTPAGE
Lloh10:
	ldr	x12, [x12, _UNW_REG_PRI_UNAT_MEM@GOTPAGEOFF]
Lloh11:
	ldr	x12, [x12]
	mov	x13, x12
	cmp	x8, x11
	b.lt	LBB0_7
; %bb.5:
	mov	w13, #24
	mul	x13, x12, x13
	ldr	x9, [x9, x13]
	mov	x13, x10
	cmp	x8, x9
	b.lt	LBB0_7
; %bb.6:
	cmp	x9, x11
	csel	x13, x12, x10, gt
LBB0_7:
	sxtw	x2, w13
	mov	x0, x19
	mov	x1, x20
	bl	_uw_update_reg_address
Lloh12:
	adrp	x8, _UNW_REG_BSP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UNW_REG_BSP@GOTPAGEOFF]
Lloh14:
	ldr	x21, [x8]
Lloh15:
	adrp	x22, _UNW_NUM_REGS@GOTPAGE
Lloh16:
	ldr	x22, [x22, _UNW_NUM_REGS@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	cmp	x21, x8
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_uw_update_reg_address
	add	x21, x21, #1
	b	LBB0_8
LBB0_10:
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_12
; %bb.11:
	ldp	x8, x0, [x19]
	ldr	x8, [x8]
	ubfx	x8, x8, #7, #7
	neg	x1, x8
	bl	_ia64_rse_skip_regs
	str	x0, [x19, #8]
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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_UNW_REG_PSP,8,3                ; @UNW_REG_PSP
	.comm	_UNW_WHERE_NONE,8,3             ; @UNW_WHERE_NONE
	.comm	_UNW_REG_PRI_UNAT_GR,8,3        ; @UNW_REG_PRI_UNAT_GR
	.comm	_UNW_REG_PRI_UNAT_MEM,8,3       ; @UNW_REG_PRI_UNAT_MEM
	.comm	_UNW_REG_BSP,8,3                ; @UNW_REG_BSP
	.comm	_UNW_NUM_REGS,8,3               ; @UNW_NUM_REGS
	.no_dead_strip	_uw_update_context
.subsections_via_symbols
