	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carthw_Xin1_do
_carthw_Xin1_do:                        ## @carthw_Xin1_do
	.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
	movl	%edx, %ecx
	movl	%esi, %edx
	movq	_carthw_Xin1_baddr@GOTPCREL(%rip), %rax
	andl	%edi, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movl	%edi, (%rax)
	movq	_Pico@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	subl	%edx, %eax
	jle	LBB0_1
## %bb.2:
	movq	_M68K_BANK_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	addl	%ebx, %eax
	notl	%ebx
	andl	%eax, %ebx
	movq	_m68k_read8_map@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	decl	%ebx
	movslq	%edx, %r14
	movq	8(%r15), %rcx
	addq	%r14, %rcx
	xorl	%esi, %esi
	movl	%ebx, %edx
	xorl	%r8d, %r8d
	callq	_cpu68k_map_set
	movq	_m68k_read16_map@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	8(%r15), %r14
	xorl	%esi, %esi
	movl	%ebx, %edx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cpu68k_map_set                 ## TAILCALL
LBB0_1:
	movq	_EL_ANOMALY@GOTPCREL(%rip), %rax
	movq	_EL_STATUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elprintf                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_carthw_Xin1_baddr,4,2          ## @carthw_Xin1_baddr
	.comm	_Pico,16,3                      ## @Pico
	.comm	_EL_ANOMALY,4,2                 ## @EL_ANOMALY
	.comm	_EL_STATUS,4,2                  ## @EL_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"X-in-1: missing bank @ %06x"

	.comm	_M68K_BANK_MASK,4,2             ## @M68K_BANK_MASK
	.comm	_m68k_read8_map,4,2             ## @m68k_read8_map
	.comm	_m68k_read16_map,4,2            ## @m68k_read16_map
	.no_dead_strip	_carthw_Xin1_do
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carthw_Xin1_do
_carthw_Xin1_do:                        ; @carthw_Xin1_do
	.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
Lloh0:
	adrp	x8, _carthw_Xin1_baddr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _carthw_Xin1_baddr@GOTPAGEOFF]
Lloh2:
	str	w0, [x8]
	and	w8, w1, w0
	lsl	w2, w8, w2
Lloh3:
	adrp	x20, _Pico@GOTPAGE
Lloh4:
	ldr	x20, [x20, _Pico@GOTPAGEOFF]
	ldr	w8, [x20]
	sub	w8, w8, w2
	cmp	w8, #0
	b.le	LBB0_2
; %bb.1:
Lloh5:
	adrp	x9, _M68K_BANK_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _M68K_BANK_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _m68k_read8_map@GOTPAGE
Lloh9:
	ldr	x10, [x10, _m68k_read8_map@GOTPAGEOFF]
	add	w8, w9, w8
	bic	w8, w8, w9
Lloh10:
	ldr	w0, [x10]
	sub	w19, w8, #1
	ldr	x8, [x20, #8]
	sxtw	x21, w2
	add	x3, x8, x21
	mov	w1, #0
	mov	x2, x19
	mov	w4, #0
	bl	_cpu68k_map_set
Lloh11:
	adrp	x8, _m68k_read16_map@GOTPAGE
Lloh12:
	ldr	x8, [x8, _m68k_read16_map@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x8, [x20, #8]
	add	x3, x8, x21
	mov	w1, #0
	mov	x2, x19
	mov	w4, #0
	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	_cpu68k_map_set
LBB0_2:
Lloh14:
	adrp	x8, _EL_ANOMALY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EL_ANOMALY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _EL_STATUS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _EL_STATUS@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	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	_elprintf
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_carthw_Xin1_baddr,4,2          ; @carthw_Xin1_baddr
	.comm	_Pico,16,3                      ; @Pico
	.comm	_EL_ANOMALY,4,2                 ; @EL_ANOMALY
	.comm	_EL_STATUS,4,2                  ; @EL_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"X-in-1: missing bank @ %06x"

	.comm	_M68K_BANK_MASK,4,2             ; @M68K_BANK_MASK
	.comm	_m68k_read8_map,4,2             ; @m68k_read8_map
	.comm	_m68k_read16_map,4,2            ; @m68k_read16_map
	.no_dead_strip	_carthw_Xin1_do
.subsections_via_symbols
