	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___qib_sdma_process_event       ## -- Begin function __qib_sdma_process_event
	.p2align	4, 0x90
___qib_sdma_process_event:              ## @__qib_sdma_process_event
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	8(%rdi), %eax
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_39
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	leal	-136(%r14), %eax
	cmpl	$9, %eax
	ja	LBB0_39
## %bb.3:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	%rbx, %rdi
	movl	$129, %esi
	jmp	LBB0_38
LBB0_5:
	leal	-138(%r14), %eax
	cmpl	$7, %eax
	ja	LBB0_39
## %bb.6:
	leaq	LJTI0_2(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_30:
	movq	%rbx, %rdi
	movl	$130, %esi
	callq	_sdma_set_state
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	jmp	LBB0_39
LBB0_8:
	leal	-138(%r14), %eax
	cmpl	$7, %eax
	ja	LBB0_39
## %bb.9:
	leaq	LJTI0_3(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_25:
	movq	%rbx, %rdi
	movl	$131, %esi
	jmp	LBB0_26
LBB0_11:
	leal	-138(%r14), %eax
	cmpl	$7, %eax
	ja	LBB0_39
## %bb.12:
	leaq	LJTI0_4(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_33:
	movq	%rbx, %rdi
	movl	$133, %esi
	callq	_sdma_set_state
	movq	%rbx, %rdi
	callq	_sdma_hw_start_up
	jmp	LBB0_39
LBB0_14:
	cmpl	$142, %r14d
	je	LBB0_29
## %bb.15:
	cmpl	$145, %r14d
	je	LBB0_27
	jmp	LBB0_39
LBB0_16:
	leal	-138(%r14), %eax
	cmpl	$7, %eax
	ja	LBB0_39
## %bb.17:
	leaq	LJTI0_5(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_18:
	movl	$0, 12(%rbx)
	jmp	LBB0_39
LBB0_19:
	cmpl	$141, %r14d
	je	LBB0_28
## %bb.20:
	cmpl	$144, %r14d
	je	LBB0_23
## %bb.21:
	cmpl	$142, %r14d
	jne	LBB0_39
## %bb.22:
	movl	$1, 12(%rbx)
LBB0_23:
	leaq	8(%rbx), %rdi
	callq	_sdma_get
	movq	%rbx, %rdi
	movl	$133, %esi
	jmp	LBB0_38
LBB0_36:
	movl	$1, 12(%rbx)
	jmp	LBB0_39
LBB0_24:
	movq	%rbx, %rdi
	movl	$134, %esi
LBB0_26:
	callq	_sdma_set_state
	movq	%rbx, %rdi
	callq	_sdma_start_sw_clean_up
	jmp	LBB0_39
LBB0_27:
	movq	%rbx, %rdi
	movl	$134, %esi
	callq	_sdma_set_state
LBB0_28:
	movq	%rbx, %rdi
	callq	_sdma_sw_tear_down
	jmp	LBB0_39
LBB0_29:
	movq	%rbx, %rdi
	movl	$128, %esi
	callq	_sdma_set_state
	movl	$1, 12(%rbx)
	jmp	LBB0_39
LBB0_35:
	movq	%rbx, %rdi
	movl	$134, %esi
	jmp	LBB0_38
LBB0_37:
	xorl	%eax, %eax
	cmpl	$0, 12(%rbx)
	sete	%al
	leal	128(,%rax,4), %esi
	movq	%rbx, %rdi
LBB0_38:
	callq	_sdma_set_state
LBB0_39:
	movl	%r14d, 16(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_40:
	movq	%rbx, %rdi
	movl	$129, %esi
	callq	_sdma_set_state
	movl	$0, 12(%rbx)
	jmp	LBB0_39
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_14
	.long	L0_0_set_16
	.long	L0_0_set_19
.set L0_1_set_4, LBB0_4-LJTI0_1
.set L0_1_set_25, LBB0_25-LJTI0_1
.set L0_1_set_40, LBB0_40-LJTI0_1
.set L0_1_set_39, LBB0_39-LJTI0_1
.set L0_1_set_24, LBB0_24-LJTI0_1
LJTI0_1:
	.long	L0_1_set_4
	.long	L0_1_set_25
	.long	L0_1_set_40
	.long	L0_1_set_25
	.long	L0_1_set_39
	.long	L0_1_set_39
	.long	L0_1_set_39
	.long	L0_1_set_39
	.long	L0_1_set_39
	.long	L0_1_set_24
.set L0_2_set_18, LBB0_18-LJTI0_2
.set L0_2_set_30, LBB0_30-LJTI0_2
.set L0_2_set_39, LBB0_39-LJTI0_2
.set L0_2_set_36, LBB0_36-LJTI0_2
.set L0_2_set_24, LBB0_24-LJTI0_2
LJTI0_2:
	.long	L0_2_set_18
	.long	L0_2_set_30
	.long	L0_2_set_39
	.long	L0_2_set_39
	.long	L0_2_set_36
	.long	L0_2_set_39
	.long	L0_2_set_39
	.long	L0_2_set_24
.set L0_3_set_18, LBB0_18-LJTI0_3
.set L0_3_set_39, LBB0_39-LJTI0_3
.set L0_3_set_25, LBB0_25-LJTI0_3
.set L0_3_set_36, LBB0_36-LJTI0_3
.set L0_3_set_24, LBB0_24-LJTI0_3
LJTI0_3:
	.long	L0_3_set_18
	.long	L0_3_set_39
	.long	L0_3_set_25
	.long	L0_3_set_39
	.long	L0_3_set_36
	.long	L0_3_set_39
	.long	L0_3_set_39
	.long	L0_3_set_24
.set L0_4_set_18, LBB0_18-LJTI0_4
.set L0_4_set_39, LBB0_39-LJTI0_4
.set L0_4_set_33, LBB0_33-LJTI0_4
.set L0_4_set_36, LBB0_36-LJTI0_4
.set L0_4_set_35, LBB0_35-LJTI0_4
LJTI0_4:
	.long	L0_4_set_18
	.long	L0_4_set_39
	.long	L0_4_set_39
	.long	L0_4_set_33
	.long	L0_4_set_36
	.long	L0_4_set_39
	.long	L0_4_set_39
	.long	L0_4_set_35
.set L0_5_set_18, LBB0_18-LJTI0_5
.set L0_5_set_39, LBB0_39-LJTI0_5
.set L0_5_set_36, LBB0_36-LJTI0_5
.set L0_5_set_37, LBB0_37-LJTI0_5
.set L0_5_set_27, LBB0_27-LJTI0_5
LJTI0_5:
	.long	L0_5_set_18
	.long	L0_5_set_39
	.long	L0_5_set_39
	.long	L0_5_set_39
	.long	L0_5_set_36
	.long	L0_5_set_37
	.long	L0_5_set_39
	.long	L0_5_set_27
	.end_data_region
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___qib_sdma_process_event       ; -- Begin function __qib_sdma_process_event
	.p2align	2
___qib_sdma_process_event:              ; @__qib_sdma_process_event
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0, #8]!
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_33
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	sub	w8, w19, #136
	cmp	w8, #9
	b.hi	LBB0_33
; %bb.3:
Lloh2:
	adrp	x9, lJTI0_1@PAGE
Lloh3:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	mov	x0, x20
	mov	w1, #129
	b	LBB0_32
LBB0_5:
	sub	w8, w19, #138
	cmp	w8, #7
	b.hi	LBB0_33
; %bb.6:
Lloh4:
	adrp	x9, lJTI0_2@PAGE
Lloh5:
	add	x9, x9, lJTI0_2@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	mov	x0, x20
	mov	w1, #130
	bl	_sdma_set_state
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	b	LBB0_33
LBB0_8:
	sub	w8, w19, #138
	cmp	w8, #7
	b.hi	LBB0_33
; %bb.9:
Lloh6:
	adrp	x9, lJTI0_3@PAGE
Lloh7:
	add	x9, x9, lJTI0_3@PAGEOFF
	adr	x10, LBB0_10
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_10:
	mov	x0, x20
	mov	w1, #131
	b	LBB0_25
LBB0_11:
	sub	w8, w19, #138
	cmp	w8, #7
	b.hi	LBB0_33
; %bb.12:
Lloh8:
	adrp	x9, lJTI0_4@PAGE
Lloh9:
	add	x9, x9, lJTI0_4@PAGEOFF
	adr	x10, LBB0_13
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_13:
	mov	x0, x20
	mov	w1, #133
	bl	_sdma_set_state
	mov	x0, x20
	bl	_sdma_hw_start_up
	b	LBB0_33
LBB0_14:
	cmp	w19, #142
	b.eq	LBB0_28
; %bb.15:
	cmp	w19, #145
	b.eq	LBB0_26
	b	LBB0_33
LBB0_16:
	sub	w8, w19, #138
	cmp	w8, #7
	b.hi	LBB0_33
; %bb.17:
Lloh10:
	adrp	x9, lJTI0_5@PAGE
Lloh11:
	add	x9, x9, lJTI0_5@PAGEOFF
	adr	x10, LBB0_18
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_18:
	str	wzr, [x20, #12]
	b	LBB0_33
LBB0_19:
	cmp	w19, #141
	b.eq	LBB0_27
; %bb.20:
	cmp	w19, #144
	b.eq	LBB0_23
; %bb.21:
	cmp	w19, #142
	b.ne	LBB0_33
; %bb.22:
	mov	w8, #1
	str	w8, [x20, #12]
LBB0_23:
	bl	_sdma_get
	mov	x0, x20
	mov	w1, #133
	b	LBB0_32
LBB0_24:
	mov	x0, x20
	mov	w1, #134
LBB0_25:
	bl	_sdma_set_state
	mov	x0, x20
	bl	_sdma_start_sw_clean_up
	b	LBB0_33
LBB0_26:
	mov	x0, x20
	mov	w1, #134
	bl	_sdma_set_state
LBB0_27:
	mov	x0, x20
	bl	_sdma_sw_tear_down
	b	LBB0_33
LBB0_28:
	mov	x0, x20
	mov	w1, #128
	bl	_sdma_set_state
LBB0_29:
	mov	w8, #1
	str	w8, [x20, #12]
	b	LBB0_33
LBB0_30:
	mov	x0, x20
	mov	w1, #134
	b	LBB0_32
LBB0_31:
	ldr	w8, [x20, #12]
	mov	w9, #128
	mov	w10, #132
	cmp	w8, #0
	csel	w1, w10, w9, eq
	mov	x0, x20
LBB0_32:
	bl	_sdma_set_state
LBB0_33:
	str	w19, [x20, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_34:
	mov	x0, x20
	mov	w1, #129
	bl	_sdma_set_state
	str	wzr, [x20, #12]
	b	LBB0_33
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_34-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_33-LBB0_4)>>2
	.byte	(LBB0_33-LBB0_4)>>2
	.byte	(LBB0_33-LBB0_4)>>2
	.byte	(LBB0_33-LBB0_4)>>2
	.byte	(LBB0_33-LBB0_4)>>2
	.byte	(LBB0_24-LBB0_4)>>2
lJTI0_2:
	.byte	(LBB0_18-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_33-LBB0_7)>>2
	.byte	(LBB0_33-LBB0_7)>>2
	.byte	(LBB0_29-LBB0_7)>>2
	.byte	(LBB0_33-LBB0_7)>>2
	.byte	(LBB0_33-LBB0_7)>>2
	.byte	(LBB0_24-LBB0_7)>>2
lJTI0_3:
	.byte	(LBB0_18-LBB0_10)>>2
	.byte	(LBB0_33-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_33-LBB0_10)>>2
	.byte	(LBB0_29-LBB0_10)>>2
	.byte	(LBB0_33-LBB0_10)>>2
	.byte	(LBB0_33-LBB0_10)>>2
	.byte	(LBB0_24-LBB0_10)>>2
lJTI0_4:
	.byte	(LBB0_18-LBB0_13)>>2
	.byte	(LBB0_33-LBB0_13)>>2
	.byte	(LBB0_33-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_29-LBB0_13)>>2
	.byte	(LBB0_33-LBB0_13)>>2
	.byte	(LBB0_33-LBB0_13)>>2
	.byte	(LBB0_30-LBB0_13)>>2
lJTI0_5:
	.byte	(LBB0_18-LBB0_18)>>2
	.byte	(LBB0_33-LBB0_18)>>2
	.byte	(LBB0_33-LBB0_18)>>2
	.byte	(LBB0_33-LBB0_18)>>2
	.byte	(LBB0_29-LBB0_18)>>2
	.byte	(LBB0_31-LBB0_18)>>2
	.byte	(LBB0_33-LBB0_18)>>2
	.byte	(LBB0_26-LBB0_18)>>2
                                        ; -- End function
.subsections_via_symbols
