	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cadet_handler
_cadet_handler:                         ## @cadet_handler
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_readtimer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	movq	%rax, %rbx
	leaq	36(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_trylock
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	40(%rbx), %rsi
	movl	$3, %edi
	callq	_outb
	movq	40(%rbx), %rdi
	incq	%rdi
	callq	_inb
	testb	$32, %al
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_3:
	movq	40(%rbx), %rsi
	movl	$128, %edi
	callq	_outb
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%rbx), %rdi
	callq	_inb
	testb	$-128, %al
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	40(%rbx), %rdi
	incq	%rdi
	callq	_inb
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	movl	%eax, (%rdx,%rcx,4)
	incq	%rcx
	movslq	16(%rbx), %rax
	cmpq	%rax, %rcx
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, 8(%rbx)
	jmp	LBB0_4
LBB0_7:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_8:
	movq	%rbx, %rdi
	callq	_cadet_has_rds_data
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	32(%rbx), %rdi
	callq	_wake_up_interruptible
LBB0_10:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	$50, %edi
	callq	_msecs_to_jiffies
	addq	%r14, %rax
	movq	%rbx, %rdi
	addq	$24, %rdi
	movq	%rax, 24(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_add_timer                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_readtimer,4,2                  ## @readtimer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cadet: RDS fifo overflow\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_dev,8,3                        ## @dev
	.no_dead_strip	_cadet_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cadet_handler
_cadet_handler:                         ; @cadet_handler
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _readtimer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _readtimer@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	mov	x19, x0
	add	x20, x0, #36
	mov	x0, x20
	bl	_mutex_trylock
	cbz	x0, LBB0_8
; %bb.1:
	ldr	x1, [x19, #40]
	mov	w0, #3
	bl	_outb
	ldr	x8, [x19, #40]
	add	x0, x8, #1
	bl	_inb
	tbz	w0, #5, LBB0_3
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_3:
	ldr	x1, [x19, #40]
	mov	w0, #128
	bl	_outb
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #40]
	bl	_inb
	tbz	w0, #7, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #40]
	add	x0, x8, #1
	bl	_inb
	ldp	x8, x9, [x19]
	str	w0, [x8, x9, lsl #2]
	add	x8, x9, #1
	ldrsw	x9, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x8, [x19, #8]
	b	LBB0_4
LBB0_7:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_8:
	mov	x0, x19
	bl	_cadet_has_rds_data
	cbz	x0, LBB0_10
; %bb.9:
	add	x0, x19, #32
	bl	_wake_up_interruptible
LBB0_10:
Lloh5:
	adrp	x8, _jiffies@GOTPAGE
Lloh6:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh7:
	ldr	x20, [x8]
	mov	w0, #50
	bl	_msecs_to_jiffies
	add	x8, x0, x20
	str	x8, [x19, #24]!
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_add_timer
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_readtimer,4,2                  ; @readtimer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cadet: RDS fifo overflow\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_dev,8,3                        ; @dev
	.no_dead_strip	_cadet_handler
.subsections_via_symbols
