	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_m68k_op_bfextu_32_di           ## -- Begin function m68k_op_bfextu_32_di
	.p2align	4, 0x90
_m68k_op_bfextu_32_di:                  ## @m68k_op_bfextu_32_di
	.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
	movq	_CPU_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CPU_TYPE_IS_EC020_PLUS
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	xorl	%eax, %eax
	callq	_OPER_I_16
	movl	%eax, %r14d
	movl	%eax, %r15d
	movl	%eax, %r13d
	shrl	$6, %r13d
	xorl	%eax, %eax
	callq	_EA_AY_DI_8
	movl	%eax, %r12d
	movl	%r14d, %edi
	callq	_BIT_B
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_REG_D@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andl	$7, %r13d
	movl	(%rax,%r13,4), %edi
	callq	_MAKE_INT_32
	movl	%eax, %r13d
	jmp	LBB0_4
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_m68ki_exception_illegal        ## TAILCALL
LBB0_2:
	andl	$31, %r13d
LBB0_4:
	movl	%r15d, %edi
	callq	_BIT_5
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_REG_D@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r14d, %ecx
	andl	$7, %ecx
	movl	(%rax,%rcx,4), %r15d
LBB0_6:
	leal	7(%r13), %eax
	testl	%r13d, %r13d
	cmovnsl	%r13d, %eax
	movl	%eax, %ecx
	sarl	$3, %ecx
	addl	%r12d, %ecx
	andl	$-8, %eax
	movl	%r13d, %ebx
	subl	%eax, %ebx
	negl	%eax
	testl	%ebx, %ebx
	leal	8(%r13,%rax), %r13d
	cmovnsl	%ebx, %r13d
	sarl	$31, %ebx
	addl	%ecx, %ebx
	decl	%r15d
	andl	$31, %r15d
	movl	%ebx, %edi
	callq	_m68ki_read_32
	movl	%r13d, %ecx
	shll	%cl, %eax
	movl	%eax, %edi
	callq	_MASK_OUT_ABOVE_32
	movl	%eax, %r12d
	leal	(%r15,%r13), %eax
	incl	%eax
	cmpl	$33, %eax
	jb	LBB0_8
## %bb.7:
	addl	$4, %ebx
	movl	%ebx, %edi
	callq	_m68ki_read_8
	movl	%r13d, %ecx
	shll	%cl, %eax
	sarl	$8, %eax
	orl	%eax, %r12d
LBB0_8:
	movl	%r12d, %edi
	callq	_NFLAG_32
	movq	_FLAG_N@GOTPCREL(%rip), %rdx
	xorb	$31, %r15b
	movl	%r15d, %ecx
	sarl	%cl, %r12d
	movl	%eax, (%rdx)
	movq	_FLAG_Z@GOTPCREL(%rip), %rax
	movl	%r12d, (%rax)
	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	_REG_D@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shrl	$12, %r14d
	andl	$7, %r14d
	movl	%r12d, (%rax,%r14,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPU_TYPE,4,2                   ## @CPU_TYPE
	.comm	_REG_D,8,3                      ## @REG_D
	.comm	_FLAG_N,4,2                     ## @FLAG_N
	.comm	_FLAG_Z,4,2                     ## @FLAG_Z
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_m68k_op_bfextu_32_di           ; -- Begin function m68k_op_bfextu_32_di
	.p2align	2
_m68k_op_bfextu_32_di:                  ; @m68k_op_bfextu_32_di
	.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
Lloh0:
	adrp	x8, _CPU_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPU_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_CPU_TYPE_IS_EC020_PLUS
	cbz	x0, LBB0_3
; %bb.1:
	bl	_OPER_I_16
	mov	x19, x0
	mov	x20, x0
	bl	_EA_AY_DI_8
	mov	x21, x0
	mov	x0, x19
	bl	_BIT_B
Lloh3:
	adrp	x23, _REG_D@GOTPAGE
Lloh4:
	ldr	x23, [x23, _REG_D@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x23]
	ubfx	w9, w19, #6, #3
	ldr	w0, [x8, w9, uxtw #2]
	bl	_MAKE_INT_32
	mov	x22, x0
	b	LBB0_5
LBB0_3:
	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
	b	_m68ki_exception_illegal
LBB0_4:
	ubfx	w22, w19, #6, #5
LBB0_5:
	mov	x0, x20
	bl	_BIT_5
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x23]
	and	w9, w19, #0x7
	ldr	w20, [x8, w9, uxtw #2]
LBB0_7:
	add	w8, w22, #7
	cmp	w22, #0
	csel	w8, w8, w22, lt
	add	w9, w21, w8, asr #3
	and	w8, w8, #0xfffffff8
	sub	w8, w22, w8
	add	w10, w8, #8
	cmp	w8, #0
	csel	w24, w10, w8, lt
	add	w21, w9, w8, asr #31
	sub	w8, w20, #1
	and	w22, w8, #0x1f
	mov	x0, x21
	bl	_m68ki_read_32
	lsl	w0, w0, w24
	bl	_MASK_OUT_ABOVE_32
	mov	x20, x0
	add	w8, w24, w22
	add	w8, w8, #1
	cmp	w8, #33
	b.lo	LBB0_9
; %bb.8:
	add	w0, w21, #4
	bl	_m68ki_read_8
	lsl	w8, w0, w24
	orr	w20, w20, w8, asr #8
LBB0_9:
	mov	x0, x20
	bl	_NFLAG_32
Lloh5:
	adrp	x8, _FLAG_N@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FLAG_N@GOTPAGEOFF]
Lloh7:
	str	w0, [x8]
	eor	w8, w22, #0x1f
Lloh8:
	adrp	x9, _FLAG_Z@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FLAG_Z@GOTPAGEOFF]
	asr	w8, w20, w8
Lloh10:
	str	w8, [x9]
Lloh11:
	adrp	x9, _VFLAG_CLEAR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VFLAG_CLEAR@GOTPAGEOFF]
Lloh13:
	adrp	x10, _FLAG_V@GOTPAGE
Lloh14:
	ldr	x10, [x10, _FLAG_V@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	str	w9, [x10]
Lloh17:
	adrp	x9, _CFLAG_CLEAR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CFLAG_CLEAR@GOTPAGEOFF]
Lloh19:
	adrp	x10, _FLAG_C@GOTPAGE
Lloh20:
	ldr	x10, [x10, _FLAG_C@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	str	w9, [x10]
	ldr	x9, [x23]
	ubfx	w10, w19, #12, #3
	str	w8, [x9, w10, uxtw #2]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CPU_TYPE,4,2                   ; @CPU_TYPE
	.comm	_REG_D,8,3                      ; @REG_D
	.comm	_FLAG_N,4,2                     ; @FLAG_N
	.comm	_FLAG_Z,4,2                     ; @FLAG_Z
	.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
.subsections_via_symbols
