	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdla_z80_poll
_sdla_z80_poll:                         ## @sdla_z80_poll
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movl	%ecx, %r15d
	movq	%rdi, %rcx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%edi, %edx
	movslq	%edx, %r14
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_SDLA_ADDR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	andl	%esi, %r12d
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movslq	-44(%rbp), %r13                 ## 4-byte Folded Reload
	movslq	%r12d, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r12d
	notb	%r12b
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testb	%bl, %bl
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	%bl, %r12b
	je	LBB0_8
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	cmpq	%rdi, %r13
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_SDLA_WINDOW
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	%edi, %r13
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movzbl	(%rax,%rcx), %r12d
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r14, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	%r15b, %r12b
	jne	LBB0_2
LBB0_8:
	movq	_jiffies@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_time_before
	movl	(%rbx), %edx
	subl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	xorl	%ecx, %ecx
	cmpq	$1, %rax
	sbbl	%ecx, %ecx
	orl	%edx, %ecx
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_SDLA_ADDR_MASK,4,2             ## @SDLA_ADDR_MASK
	.no_dead_strip	_sdla_z80_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdla_z80_poll
_sdla_z80_poll:                         ; @sdla_z80_poll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x4
	mov	x23, x3
	mov	x19, x1
	mov	x20, x0
	ldr	x26, [x0]
Lloh0:
	adrp	x24, _jiffies@GOTPAGE
Lloh1:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
	ldr	w0, [x24]
	sxtw	x8, w0
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	add	w8, w0, w2
	sxtw	x21, w8
Lloh2:
	adrp	x8, _SDLA_ADDR_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SDLA_ADDR_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w25, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x21
	bl	_time_before
	cbz	x0, LBB0_7
; %bb.1:
	and	w23, w23, #0xff
	and	w22, w22, #0xff
	and	w8, w25, w19
	sxtw	x27, w8
	eor	w28, w23, #0xff
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x21
	bl	_time_before
	cmp	x0, #0
	ccmp	w28, w23, #4, ne
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w22, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w28, w22
	b.eq	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x0, [x24]
	cmp	x25, x0
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_SDLA_WINDOW
	ldr	w0, [x24]
	sxtw	x25, w0
	ldrb	w28, [x26, x27]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	b	LBB0_2
LBB0_7:
	ldr	w0, [x24]
	mov	x1, x21
	bl	_time_before
	ldr	w8, [x24]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	sub	w8, w8, w9
	cmp	x0, #0
	csinv	w0, w8, wzr, ne
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_SDLA_ADDR_MASK,4,2             ; @SDLA_ADDR_MASK
	.no_dead_strip	_sdla_z80_poll
.subsections_via_symbols
