	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opxchg
_opxchg:                                ## @opxchg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdx, %rdi
	callq	_is_valid_registers
	movq	(%rbx), %rcx
	movl	(%rcx), %edx
	movq	_OT_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%edx, %esi
	jne	LBB0_2
## %bb.1:
	movl	32(%rcx), %ebx
	testl	%esi, %ebx
	je	LBB0_10
LBB0_2:
	movl	$135, (%r14)
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, (%rcx)
	je	LBB0_4
## %bb.3:
	movl	$1, %esi
	jmp	LBB0_6
LBB0_4:
	xorl	%esi, %esi
	testl	%edx, 32(%rcx)
	je	LBB0_13
## %bb.5:
	movl	$1, %eax
LBB0_6:
	shlq	$5, %rax
	movl	20(%rcx,%rax), %ebx
	imull	16(%rcx,%rax), %ebx
	shlq	$5, %rsi
	movq	8(%rcx,%rax), %rax
	movl	(%rax), %edi
	movl	24(%rcx,%rsi), %edx
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.7:
	movq	_ST8_MIN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	setl	%al
	movq	_ST8_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	setg	%cl
	orb	%al, %cl
	movzbl	%cl, %ecx
	movl	%ecx, %eax
	shll	$6, %eax
	addl	$64, %eax
	shll	$3, %edx
	orl	%edi, %edx
	orl	%eax, %edx
	movl	%edx, 4(%r14)
	movl	%ebx, 8(%r14)
	movl	$3, %eax
	cmpb	$1, %cl
	jne	LBB0_16
## %bb.8:
	movl	%ebx, %eax
	sarl	$8, %eax
	movl	%eax, 12(%r14)
	movl	%ebx, %eax
	sarl	$16, %eax
	movl	%eax, 16(%r14)
	sarl	$24, %ebx
	movl	%ebx, 20(%r14)
	movl	$6, %eax
	jmp	LBB0_16
LBB0_9:
	movl	$1, %eax
	xorl	%esi, %esi
	jmp	LBB0_15
LBB0_10:
	movl	24(%rcx), %eax
	movq	_X86R_EAX@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpl	%esi, %eax
	jne	LBB0_17
## %bb.11:
	movq	_OT_GPREG@GOTPCREL(%rip), %rdi
	testl	%ebx, (%rdi)
	je	LBB0_17
## %bb.12:
	movl	$144, %eax
	addl	56(%rcx), %eax
	jmp	LBB0_20
LBB0_13:
	movl	$1, %eax
	jmp	LBB0_14
LBB0_17:
	movq	_OT_GPREG@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r8d
	cmpl	%esi, 56(%rcx)
	jne	LBB0_21
## %bb.18:
	testl	%edx, %r8d
	je	LBB0_24
## %bb.19:
	addl	$144, %eax
LBB0_20:
	movl	%eax, (%r14)
	movl	$1, %eax
	jmp	LBB0_16
LBB0_21:
	xorl	%eax, %eax
	testl	%edx, %r8d
	je	LBB0_25
## %bb.22:
	movl	$0, %esi
	movl	$0, %edx
	movl	$0, %edi
	andl	%ebx, %r8d
	je	LBB0_15
## %bb.23:
	movl	$135, (%r14)
	movl	24(%rcx), %edi
	movl	56(%rcx), %edx
	movl	$192, %esi
	movl	$1, %eax
	jmp	LBB0_15
LBB0_24:
	xorl	%eax, %eax
LBB0_25:
	xorl	%esi, %esi
LBB0_14:
	xorl	%edx, %edx
	xorl	%edi, %edi
LBB0_15:
	orl	%edi, %esi
	shll	$3, %edx
	orl	%esi, %edx
	movl	%eax, %ecx
	incl	%eax
	movl	%edx, (%r14,%rcx,4)
LBB0_16:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OT_MEMORY,4,2                  ## @OT_MEMORY
	.comm	_ST8_MIN,4,2                    ## @ST8_MIN
	.comm	_ST8_MAX,4,2                    ## @ST8_MAX
	.comm	_X86R_EAX,4,2                   ## @X86R_EAX
	.comm	_OT_GPREG,4,2                   ## @OT_GPREG
	.no_dead_strip	_opxchg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function opxchg
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_opxchg:                                ; @opxchg
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x1
	mov	x0, x2
	bl	_is_valid_registers
	ldr	x8, [x20]
	ldr	w9, [x8]
Lloh0:
	adrp	x11, _OT_MEMORY@GOTPAGE
Lloh1:
	ldr	x11, [x11, _OT_MEMORY@GOTPAGEOFF]
	ldr	w12, [x11]
	tst	w12, w9
	b.ne	LBB0_2
; %bb.1:
	ldr	w10, [x8, #32]
	tst	w10, w12
	b.eq	LBB0_12
LBB0_2:
	mov	w9, #135
	str	w9, [x19]
	ldr	w9, [x8]
	ldr	w10, [x11]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
	mov	x9, #0
	mov	w10, #1
	b	LBB0_6
LBB0_4:
	ldr	w11, [x8, #32]
	mov	w9, #1
	tst	w11, w10
	b.eq	LBB0_21
; %bb.5:
	mov	x10, #0
LBB0_6:
	add	x11, x8, x9, lsl #5
	ldp	w9, w12, [x11, #16]
	mul	w9, w12, w9
	add	x10, x8, x10, lsl #5
	ldr	x8, [x11, #8]
	ldr	w8, [x8]
	ldr	w10, [x10, #24]
	cbz	w9, LBB0_9
; %bb.7:
Lloh2:
	adrp	x11, _ST8_MIN@GOTPAGE
Lloh3:
	ldr	x11, [x11, _ST8_MIN@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x11]
	cmp	w9, w11
Lloh5:
	adrp	x11, _ST8_MAX@GOTPAGE
Lloh6:
	ldr	x11, [x11, _ST8_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	ccmp	w9, w11, #0, ge
	cset	w11, gt
	mov	w12, #64
	mov	w13, #128
	cmp	w11, #0
	csel	w12, w13, w12, ne
	orr	w8, w8, w10, lsl #3
	orr	w8, w8, w12
	stp	w8, w9, [x19, #4]
	cmp	w11, #1
	b.ne	LBB0_11
; %bb.8:
	dup.2s	v0, w9
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	sshl.2s	v0, v0, v1
	stur	d0, [x19, #12]
	asr	w8, w9, #24
	str	w8, [x19, #20]
	mov	w0, #6
	b	LBB0_23
LBB0_9:
	mov	w11, #0
LBB0_10:
	mov	w9, #1
	b	LBB0_22
LBB0_11:
	mov	w0, #3
	b	LBB0_23
LBB0_12:
	ldr	w11, [x8, #24]
Lloh10:
	adrp	x12, _X86R_EAX@GOTPAGE
Lloh11:
	ldr	x12, [x12, _X86R_EAX@GOTPAGEOFF]
Lloh12:
	ldr	w12, [x12]
Lloh13:
	adrp	x13, _OT_GPREG@GOTPAGE
Lloh14:
	ldr	x13, [x13, _OT_GPREG@GOTPAGEOFF]
	cmp	w11, w12
	b.ne	LBB0_15
; %bb.13:
	ldr	w14, [x13]
	tst	w14, w10
	b.eq	LBB0_15
; %bb.14:
	ldr	w8, [x8, #56]
	add	w8, w8, #144
	b	LBB0_18
LBB0_15:
	ldr	w14, [x8, #56]
	ldr	w13, [x13]
	and	w9, w13, w9
	cmp	w14, w12
	b.ne	LBB0_19
; %bb.16:
	cbz	w9, LBB0_21
; %bb.17:
	add	w8, w11, #144
LBB0_18:
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_23
LBB0_19:
	and	w10, w13, w10
	cmp	w9, #0
	ccmp	w10, #0, #4, ne
	b.ne	LBB0_24
; %bb.20:
	mov	w9, #0
LBB0_21:
	mov	w11, #0
	mov	w10, #0
	mov	w8, #0
LBB0_22:
	orr	w10, w11, w10, lsl #3
	orr	w8, w10, w8
	add	w0, w9, #1
	str	w8, [x19, w9, uxtw #2]
LBB0_23:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_24:
	mov	w9, #135
	str	w9, [x19]
	ldr	w10, [x8, #56]
	ldr	w8, [x8, #24]
	mov	w11, #192
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_OT_MEMORY,4,2                  ; @OT_MEMORY
	.comm	_ST8_MIN,4,2                    ; @ST8_MIN
	.comm	_ST8_MAX,4,2                    ; @ST8_MAX
	.comm	_X86R_EAX,4,2                   ; @X86R_EAX
	.comm	_OT_GPREG,4,2                   ; @OT_GPREG
	.no_dead_strip	_opxchg
.subsections_via_symbols
