	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function td_tasklet
_td_tasklet:                            ## @td_tasklet
	.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	%rdi, %r15
	movq	_TIMBDMA_ISR@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_ioread32
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	___td_ier_mask
	andl	%ebx, %eax
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_iowrite32
	movl	16(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_spin_unlock
	movl	16(%r15), %eax
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	addq	$8, %r13
	cmpq	%rcx, %rbx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	btl	%ebx, %ecx
	jae	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %r14
	leaq	(%r14,%r13), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	movq	%r12, %rdi
	callq	___td_finish
	leaq	(%r14,%r13), %rdi
	addq	$4, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	___td_start_next
	jmp	LBB0_5
LBB0_7:
	movq	%r15, %rdi
	callq	___td_ier_mask
	movq	_TIMBDMA_IER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r15), %rsi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iowrite32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TIMBDMA_ISR,8,3                ## @TIMBDMA_ISR
	.comm	_TIMBDMA_IER,8,3                ## @TIMBDMA_IER
	.no_dead_strip	_td_tasklet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function td_tasklet
_td_tasklet:                            ; @td_tasklet
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _TIMBDMA_ISR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TIMBDMA_ISR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_ioread32
	mov	x20, x0
	mov	x0, x19
	bl	___td_ier_mask
	and	w20, w0, w20
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x20
	bl	_iowrite32
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x22, #0
	mov	x23, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_spin_unlock
	ldr	w8, [x19, #16]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	add	x22, x22, #8
	cmp	x23, w8, sxtw
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w9, w20, w23
	tbz	w9, #0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	add	x21, x8, x22
	mov	x0, x21
	bl	_spin_lock
	mov	x0, x21
	bl	___td_finish
	add	x0, x21, #4
	bl	_list_empty
	cbnz	w0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	___td_start_next
	b	LBB0_2
LBB0_7:
	mov	x0, x19
	bl	___td_ier_mask
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _TIMBDMA_IER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TIMBDMA_IER@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	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	_iowrite32
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TIMBDMA_ISR,8,3                ; @TIMBDMA_ISR
	.comm	_TIMBDMA_IER,8,3                ; @TIMBDMA_IER
	.no_dead_strip	_td_tasklet
.subsections_via_symbols
