	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function faulty_reshape
_faulty_reshape:                        ## @faulty_reshape
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %edx
	movq	_ModeShift@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%edx, %ebx
	sarl	%cl, %ebx
	xorl	%eax, %eax
	testl	%edx, %edx
	js	LBB0_10
## %bb.1:
	movq	%rdi, %r15
	movq	_ModeMask@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movq	8(%rdi), %r13
	movq	_ClearFaults@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_3
## %bb.2:
	movq	$0, 16(%r13)
	jmp	LBB0_9
LBB0_3:
	movq	_ClearErrors@GOTPCREL(%rip), %rsi
	movq	_Modes@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	cmpl	(%rsi), %edx
	jne	LBB0_7
## %bb.4:
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.5:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	$0, (%rax,%rbx)
	movq	8(%r13), %rdi
	addq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	incq	%r14
	movslq	(%r12), %rax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jl	LBB0_6
	jmp	LBB0_9
LBB0_7:
	cmpl	%ecx, %edx
	jge	LBB0_11
## %bb.8:
	movslq	%edx, %rdi
	movq	(%r13), %rcx
	movl	%ebx, (%rcx,%rdi,4)
	shlq	$2, %rdi
	testl	%ebx, %ebx
	movl	$1, %esi
	cmovnel	%ebx, %esi
	addq	8(%r13), %rdi
	callq	_atomic_set
LBB0_9:
	movq	$-1, (%r15)
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ModeMask,4,2                   ## @ModeMask
	.comm	_ModeShift,4,2                  ## @ModeShift
	.comm	_ClearFaults,4,2                ## @ClearFaults
	.comm	_ClearErrors,4,2                ## @ClearErrors
	.comm	_Modes,4,2                      ## @Modes
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_faulty_reshape
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function faulty_reshape
_faulty_reshape:                        ; @faulty_reshape
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0]
	tbnz	w8, #31, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, _ModeMask@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ModeMask@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w8
	ldr	x20, [x0, #8]
Lloh3:
	adrp	x10, _ClearFaults@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ClearFaults@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_4
; %bb.2:
	str	xzr, [x20, #16]
	b	LBB0_10
LBB0_3:
	mov	w0, #0
	b	LBB0_11
LBB0_4:
Lloh6:
	adrp	x10, _ClearErrors@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ClearErrors@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x10]
Lloh9:
	adrp	x21, _Modes@GOTPAGE
Lloh10:
	ldr	x21, [x21, _Modes@GOTPAGEOFF]
	ldr	w10, [x21]
	cmp	w9, w11
	b.ne	LBB0_8
; %bb.5:
	cmp	w10, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x22, #0
	mov	x23, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x20]
	str	wzr, [x8, x22]
	add	x0, x9, x22
	mov	w1, #0
	bl	_atomic_set
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_7
	b	LBB0_10
LBB0_8:
	cmp	w9, w10
	b.ge	LBB0_12
; %bb.9:
Lloh11:
	adrp	x10, _ModeShift@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ModeShift@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	asr	w8, w8, w10
	sbfiz	x9, x9, #2, #32
	ldp	x10, x11, [x20]
	str	w8, [x10, x9]
	cmp	w8, #0
	csinc	w1, w8, wzr, ne
	add	x0, x11, x9
	bl	_atomic_set
LBB0_10:
	mov	w0, #0
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ModeMask,4,2                   ; @ModeMask
	.comm	_ModeShift,4,2                  ; @ModeShift
	.comm	_ClearFaults,4,2                ; @ClearFaults
	.comm	_ClearErrors,4,2                ; @ClearErrors
	.comm	_Modes,4,2                      ; @Modes
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_faulty_reshape
.subsections_via_symbols
