	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m68k_op_divs_16_pd
_m68k_op_divs_16_pd:                    ## @m68k_op_divs_16_pd
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_OPER_AY_PD_16
	movl	%eax, %edi
	callq	_MAKE_INT_16
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	%eax, %ebx
	movq	_DX@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movl	%eax, %esi
	callq	_UseDivsCycles
	movq	(%r12), %rdi
	cmpl	$-2147483648, %edi              ## imm = 0x80000000
	jne	LBB0_4
## %bb.2:
	cmpl	$-1, %ebx
	jne	LBB0_4
## %bb.3:
	movq	_FLAG_Z@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_NFLAG_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	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)
	movq	$0, (%r12)
	jmp	LBB0_8
LBB0_6:
	movq	_CFLAG_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_FLAG_C@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_EXCEPTION_ZERO_DIVIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_m68ki_exception_trap           ## TAILCALL
LBB0_4:
	callq	_MAKE_INT_32
	cltd
	idivl	%ebx
	movl	%eax, %r14d
	movq	(%r12), %rdi
	callq	_MAKE_INT_32
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_MAKE_INT_16
	cmpl	%eax, %r14d
	jne	LBB0_7
## %bb.5:
	movl	%r15d, %eax
	cltd
	idivl	%ebx
	movl	%edx, %ebx
	movq	_FLAG_Z@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	movl	%r14d, %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	%r14d, %edi
	callq	_MASK_OUT_ABOVE_16
	shll	$16, %ebx
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_MASK_OUT_ABOVE_32
	movq	%rax, (%r12)
	jmp	LBB0_8
LBB0_7:
	movq	_VFLAG_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_FLAG_V@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_NFLAG_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_FLAG_N@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_CFLAG_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_FLAG_C@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DX,8,3                         ## @DX
	.comm	_FLAG_Z,4,2                     ## @FLAG_Z
	.comm	_NFLAG_CLEAR,4,2                ## @NFLAG_CLEAR
	.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	_NFLAG_SET,4,2                  ## @NFLAG_SET
	.comm	_EXCEPTION_ZERO_DIVIDE,4,2      ## @EXCEPTION_ZERO_DIVIDE
	.no_dead_strip	_m68k_op_divs_16_pd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m68k_op_divs_16_pd
_m68k_op_divs_16_pd:                    ; @m68k_op_divs_16_pd
	.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_PD_16
	bl	_MAKE_INT_16
	cbz	w0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x22, _DX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DX@GOTPAGEOFF]
	ldr	x0, [x22]
	mov	x1, x19
	bl	_UseDivsCycles
	ldr	x0, [x22]
	mov	w8, #-2147483648
	cmp	w0, w8
	ccmn	w19, #1, #0, eq
	b.eq	LBB0_5
; %bb.2:
	bl	_MAKE_INT_32
	ldr	x8, [x22]
	sdiv	w20, w0, w19
	mov	x0, x8
	bl	_MAKE_INT_32
	mov	x21, x0
	mov	x0, x20
	bl	_MAKE_INT_16
	cmp	w20, w0
	b.ne	LBB0_6
; %bb.3:
	sdiv	w8, w21, w19
	msub	w19, w8, w19, w21
Lloh2:
	adrp	x8, _FLAG_Z@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FLAG_Z@GOTPAGEOFF]
Lloh4:
	str	w20, [x8]
	mov	x0, x20
	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, x20
	bl	_MASK_OUT_ABOVE_16
	orr	w0, w0, w19, lsl #16
	bl	_MASK_OUT_ABOVE_32
	str	x0, [x22]
	b	LBB0_7
LBB0_4:
Lloh20:
	adrp	x8, _CFLAG_CLEAR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CFLAG_CLEAR@GOTPAGEOFF]
Lloh22:
	adrp	x9, _FLAG_C@GOTPAGE
Lloh23:
	ldr	x9, [x9, _FLAG_C@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	str	w8, [x9]
Lloh26:
	adrp	x8, _EXCEPTION_ZERO_DIVIDE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EXCEPTION_ZERO_DIVIDE@GOTPAGEOFF]
Lloh28:
	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_5:
Lloh29:
	adrp	x8, _NFLAG_CLEAR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _NFLAG_CLEAR@GOTPAGEOFF]
Lloh31:
	adrp	x9, _FLAG_N@GOTPAGE
Lloh32:
	ldr	x9, [x9, _FLAG_N@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	str	w8, [x9]
Lloh35:
	adrp	x8, _VFLAG_CLEAR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _VFLAG_CLEAR@GOTPAGEOFF]
Lloh37:
	adrp	x9, _FLAG_V@GOTPAGE
Lloh38:
	ldr	x9, [x9, _FLAG_V@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
Lloh40:
	str	w8, [x9]
Lloh41:
	adrp	x8, _FLAG_Z@GOTPAGE
Lloh42:
	ldr	x8, [x8, _FLAG_Z@GOTPAGEOFF]
Lloh43:
	adrp	x9, _CFLAG_CLEAR@GOTPAGE
Lloh44:
	ldr	x9, [x9, _CFLAG_CLEAR@GOTPAGEOFF]
Lloh45:
	str	wzr, [x8]
Lloh46:
	ldr	w8, [x9]
Lloh47:
	adrp	x9, _FLAG_C@GOTPAGE
Lloh48:
	ldr	x9, [x9, _FLAG_C@GOTPAGEOFF]
Lloh49:
	str	w8, [x9]
	str	xzr, [x22]
	b	LBB0_7
LBB0_6:
Lloh50:
	adrp	x8, _VFLAG_SET@GOTPAGE
Lloh51:
	ldr	x8, [x8, _VFLAG_SET@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
Lloh53:
	adrp	x9, _FLAG_V@GOTPAGE
Lloh54:
	ldr	x9, [x9, _FLAG_V@GOTPAGEOFF]
Lloh55:
	str	w8, [x9]
Lloh56:
	adrp	x8, _NFLAG_SET@GOTPAGE
Lloh57:
	ldr	x8, [x8, _NFLAG_SET@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
Lloh59:
	adrp	x9, _FLAG_N@GOTPAGE
Lloh60:
	ldr	x9, [x9, _FLAG_N@GOTPAGEOFF]
Lloh61:
	str	w8, [x9]
Lloh62:
	adrp	x8, _CFLAG_CLEAR@GOTPAGE
Lloh63:
	ldr	x8, [x8, _CFLAG_CLEAR@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
Lloh65:
	adrp	x9, _FLAG_C@GOTPAGE
Lloh66:
	ldr	x9, [x9, _FLAG_C@GOTPAGEOFF]
Lloh67:
	str	w8, [x9]
LBB0_7:
	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	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGotStr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh46
	.loh AdrpLdrGotStr	Lloh41, Lloh42, Lloh45
	.loh AdrpLdrGotStr	Lloh37, Lloh38, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh39
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh33
	.loh AdrpLdrGotStr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotStr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotStr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_DX,8,3                         ; @DX
	.comm	_FLAG_Z,4,2                     ; @FLAG_Z
	.comm	_NFLAG_CLEAR,4,2                ; @NFLAG_CLEAR
	.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	_NFLAG_SET,4,2                  ; @NFLAG_SET
	.comm	_EXCEPTION_ZERO_DIVIDE,4,2      ; @EXCEPTION_ZERO_DIVIDE
	.no_dead_strip	_m68k_op_divs_16_pd
.subsections_via_symbols
