	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_m68k_op_divu_16_pi             ## -- Begin function m68k_op_divu_16_pi
	.p2align	4, 0x90
_m68k_op_divu_16_pi:                    ## @m68k_op_divu_16_pi
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_OPER_AY_PI_16
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ecx
	movq	_DX@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	cltd
	idivl	%ecx
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jg	LBB0_4
## %bb.2:
	movl	%edx, %r14d
	movl	%eax, %ebx
	movq	_FLAG_Z@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movl	%ebx, %edi
	callq	_NFLAG_16
	movq	_FLAG_N@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_VFLAG_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_FLAG_V@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_CFLAG_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_FLAG_C@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%ebx, %edi
	callq	_MASK_OUT_ABOVE_16
	shll	$16, %r14d
	orl	%eax, %r14d
	movl	%r14d, %edi
	callq	_MASK_OUT_ABOVE_32
	movl	%eax, (%r15)
	jmp	LBB0_5
LBB0_3:
	movq	_EXCEPTION_ZERO_DIVIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_m68ki_exception_trap           ## TAILCALL
LBB0_4:
	movq	_VFLAG_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_FLAG_V@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DX,4,2                         ## @DX
	.comm	_FLAG_Z,4,2                     ## @FLAG_Z
	.comm	_FLAG_N,4,2                     ## @FLAG_N
	.comm	_VFLAG_CLEAR,4,2                ## @VFLAG_CLEAR
	.comm	_FLAG_V,4,2                     ## @FLAG_V
	.comm	_CFLAG_CLEAR,4,2                ## @CFLAG_CLEAR
	.comm	_FLAG_C,4,2                     ## @FLAG_C
	.comm	_VFLAG_SET,4,2                  ## @VFLAG_SET
	.comm	_EXCEPTION_ZERO_DIVIDE,4,2      ## @EXCEPTION_ZERO_DIVIDE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_m68k_op_divu_16_pi             ; -- Begin function m68k_op_divu_16_pi
	.p2align	2
_m68k_op_divu_16_pi:                    ; @m68k_op_divu_16_pi
	.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
	bl	_OPER_AY_PI_16
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x20, _DX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DX@GOTPAGEOFF]
	ldr	w8, [x20]
	sdiv	w19, w8, w0
	cmp	w19, #16, lsl #12               ; =65536
	b.ge	LBB0_4
; %bb.2:
	msub	w21, w19, w0, w8
Lloh2:
	adrp	x8, _FLAG_Z@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FLAG_Z@GOTPAGEOFF]
Lloh4:
	str	w19, [x8]
	mov	x0, x19
	bl	_NFLAG_16
Lloh5:
	adrp	x8, _FLAG_N@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FLAG_N@GOTPAGEOFF]
Lloh7:
	str	w0, [x8]
Lloh8:
	adrp	x8, _VFLAG_CLEAR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VFLAG_CLEAR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _FLAG_V@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FLAG_V@GOTPAGEOFF]
Lloh13:
	str	w8, [x9]
Lloh14:
	adrp	x8, _CFLAG_CLEAR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CFLAG_CLEAR@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _FLAG_C@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FLAG_C@GOTPAGEOFF]
Lloh19:
	str	w8, [x9]
	mov	x0, x19
	bl	_MASK_OUT_ABOVE_16
	orr	w0, w0, w21, lsl #16
	bl	_MASK_OUT_ABOVE_32
	str	w0, [x20]
	b	LBB0_5
LBB0_3:
Lloh20:
	adrp	x8, _EXCEPTION_ZERO_DIVIDE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EXCEPTION_ZERO_DIVIDE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	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
	b	_m68ki_exception_trap
LBB0_4:
Lloh23:
	adrp	x8, _VFLAG_SET@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VFLAG_SET@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _FLAG_V@GOTPAGE
Lloh27:
	ldr	x9, [x9, _FLAG_V@GOTPAGEOFF]
Lloh28:
	str	w8, [x9]
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_DX,4,2                         ; @DX
	.comm	_FLAG_Z,4,2                     ; @FLAG_Z
	.comm	_FLAG_N,4,2                     ; @FLAG_N
	.comm	_VFLAG_CLEAR,4,2                ; @VFLAG_CLEAR
	.comm	_FLAG_V,4,2                     ; @FLAG_V
	.comm	_CFLAG_CLEAR,4,2                ; @CFLAG_CLEAR
	.comm	_FLAG_C,4,2                     ; @FLAG_C
	.comm	_VFLAG_SET,4,2                  ; @VFLAG_SET
	.comm	_EXCEPTION_ZERO_DIVIDE,4,2      ; @EXCEPTION_ZERO_DIVIDE
.subsections_via_symbols
