	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mod                            ## -- Begin function mod
	.p2align	4, 0x90
_mod:                                   ## @mod
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	movl	%esi, %ecx
	jmp	LBB0_4
LBB0_2:
	movl	%esi, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	negl	%eax
	negl	%ecx
	testl	%esi, %esi
	movl	%ecx, %esi
	jg	LBB0_3
LBB0_4:
	cltd
	idivl	%ecx
	movl	%edx, %eax
	sarl	$31, %eax
	andl	%ecx, %eax
	addl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mod                            ; -- Begin function mod
	.p2align	2
_mod:                                   ; @mod
	.cfi_startproc
; %bb.0:
	tbnz	w1, #31, LBB0_2
; %bb.1:
	mov	x8, x1
	b	LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	neg	w0, w0
	neg	w8, w1
	cmp	w1, #0
	mov	x1, x8
	b.gt	LBB0_2
LBB0_3:
	sdiv	w9, w0, w8
	msub	w9, w9, w8, w0
	and	w8, w8, w9, asr #31
	add	w0, w8, w9
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
