	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d68020_bfextu
_d68020_bfextu:                         ## @d68020_bfextu
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_M68020_PLUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LIMIT_CPU_TYPES
	xorl	%eax, %eax
	callq	_read_imm_16
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_BIT_B
	movl	%ebx, %ecx
	shrl	$6, %ecx
	testq	%rax, %rax
	movl	$31, %eax
	movl	$7, %edx
	cmovel	%eax, %edx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rsi
	cmoveq	%rax, %rsi
	andl	%ecx, %edx
	leaq	-22(%rbp), %rdi
	xorl	%eax, %eax
	callq	_sprintf
	movl	%ebx, %edi
	callq	_BIT_5
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edx
	andl	$7, %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_2:
	movq	_g_5bit_data_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	andl	$31, %ecx
	movl	(%rax,%rcx,4), %edx
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	leaq	-19(%rbp), %rdi
	xorl	%eax, %eax
	callq	_sprintf
	movq	_g_dasm_str@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	shrl	$12, %ebx
	andl	$7, %ebx
	movq	_g_cpu_ir@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_ea_mode_str_8
	leaq	L_.str.2(%rip), %rsi
	leaq	-22(%rbp), %r8
	leaq	-19(%rbp), %r9
	movq	%r14, %rdi
	movl	%ebx, %edx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_sprintf
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M68020_PLUS,4,2                ## @M68020_PLUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"D%d"

L_.str.1:                               ## @.str.1
	.asciz	"%d"

	.comm	_g_5bit_data_table,8,3          ## @g_5bit_data_table
	.comm	_g_dasm_str,4,2                 ## @g_dasm_str
L_.str.2:                               ## @.str.2
	.asciz	"bfextu  D%d, %s {%s:%s}; (2+)"

	.comm	_g_cpu_ir,4,2                   ## @g_cpu_ir
	.no_dead_strip	_d68020_bfextu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d68020_bfextu
_d68020_bfextu:                         ; @d68020_bfextu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, _M68020_PLUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M68020_PLUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_LIMIT_CPU_TYPES
	bl	_read_imm_16
	mov	x19, x0
	bl	_BIT_B
	mov	w8, #7
	mov	w9, #31
Lloh3:
	adrp	x10, l_.str@PAGE
Lloh4:
	add	x10, x10, l_.str@PAGEOFF
Lloh5:
	adrp	x11, l_.str.1@PAGE
Lloh6:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x1, x11, x10, eq
	csel	w8, w9, w8, eq
	and	w2, w8, w19, lsr #6
	sub	x0, x29, #19
	bl	_sprintf
	mov	x0, x19
	bl	_BIT_5
	cbz	x0, LBB0_2
; %bb.1:
	and	w2, w19, #0x7
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _g_5bit_data_table@GOTPAGE
Lloh10:
	ldr	x8, [x8, _g_5bit_data_table@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	and	w9, w19, #0x1f
	ldr	w2, [x8, w9, uxtw #2]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_3:
	sub	x0, x29, #22
	bl	_sprintf
Lloh14:
	adrp	x8, _g_dasm_str@GOTPAGE
Lloh15:
	ldr	x8, [x8, _g_dasm_str@GOTPAGEOFF]
Lloh16:
	ldrsw	x20, [x8]
	ubfx	w19, w19, #12, #3
Lloh17:
	adrp	x8, _g_cpu_ir@GOTPAGE
Lloh18:
	ldr	x8, [x8, _g_cpu_ir@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_get_ea_mode_str_8
	sub	x8, x29, #22
	str	x8, [sp, #16]
	sub	x8, x29, #19
	stp	x0, x8, [sp]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_sprintf
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_M68020_PLUS,4,2                ; @M68020_PLUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"D%d"

l_.str.1:                               ; @.str.1
	.asciz	"%d"

	.comm	_g_5bit_data_table,8,3          ; @g_5bit_data_table
	.comm	_g_dasm_str,4,2                 ; @g_dasm_str
l_.str.2:                               ; @.str.2
	.asciz	"bfextu  D%d, %s {%s:%s}; (2+)"

	.comm	_g_cpu_ir,4,2                   ; @g_cpu_ir
	.no_dead_strip	_d68020_bfextu
.subsections_via_symbols
