	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udivmodsi4                     ## -- Begin function udivmodsi4
	.p2align	4, 0x90
_udivmodsi4:                            ## @udivmodsi4
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rax
	movl	$1, %r10d
	testl	$-2147483648, %esi              ## imm = 0x80000000
	jne	LBB0_8
## %bb.1:
	cmpq	%rax, %rsi
	jae	LBB0_8
## %bb.2:
	movl	$1, %r10d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %rcx
	addq	%rsi, %rsi
	addq	%r10, %r10
	testl	$1073741824, %ecx               ## imm = 0x40000000
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rax, %rsi
	jae	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%r10, %r10
	jne	LBB0_3
LBB0_4:
	testq	%r10, %r10
	je	LBB0_5
LBB0_8:
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	movq	%r10, %r11
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, %rax
	movq	%rsi, %rdi
	cmovbq	%r8, %rdi
	movq	%r10, %rcx
	cmovbq	%r8, %rcx
	subq	%rdi, %rax
	orq	%rcx, %r9
	shrq	%r11
	shrq	%rsi
	cmpq	$1, %r10
	movq	%r11, %r10
	ja	LBB0_9
LBB0_10:
	testl	%edx, %edx
	cmoveq	%r9, %rax
	popq	%rbp
	retq
LBB0_5:
	xorl	%r9d, %r9d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udivmodsi4                     ; -- Begin function udivmodsi4
	.p2align	2
_udivmodsi4:                            ; @udivmodsi4
	.cfi_startproc
; %bb.0:
	mov	w8, #1
	tbnz	w1, #31, LBB0_7
; %bb.1:
	cmp	x1, x0
	b.hs	LBB0_7
; %bb.2:
	mov	w8, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x1
	lsl	x1, x1, #1
	lsl	x8, x8, #1
	tbnz	w9, #30, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x1, x0
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	x8, LBB0_3
LBB0_6:
	cbz	x8, LBB0_10
LBB0_7:
	mov	x9, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x0, x1
	csel	x10, xzr, x1, lo
	csel	x11, xzr, x8, lo
	sub	x0, x0, x10
	orr	x9, x9, x11
	lsr	x10, x8, #1
	lsr	x1, x1, #1
	cmp	x8, #1
	mov	x8, x10
	b.hi	LBB0_8
LBB0_9:
	cmp	w2, #0
	csel	x0, x9, x0, eq
	ret
LBB0_10:
	mov	x9, #0
	b	LBB0_9
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
