	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_setup_sdma                 ## -- Begin function qib_setup_sdma
	.p2align	4, 0x90
_qib_setup_sdma:                        ## @qib_setup_sdma
	.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
	movq	%rdi, %r14
	movq	72(%rdi), %r15
	callq	_alloc_sdma
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	72(%r14), %rax
	movq	%r14, %rdi
	callq	*8(%rax)
	leaq	64(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_qib_sdma_state_s00_hw_down@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sdma_set_state
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	leaq	56(%r14), %rbx
	leaq	60(%r14), %rdi
	callq	_kref_init
	movq	%rbx, %rdi
	callq	_init_completion
	leaq	8(%r14), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	movups	%xmm0, 32(%r14)
	movq	$0, 48(%r14)
	callq	_INIT_LIST_HEAD
	leaq	4(%r14), %rdi
	callq	_INIT_LIST_HEAD
	movq	_sdma_sw_clean_up_task@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r14, %rdx
	callq	_tasklet_init
	movq	%r14, %rdi
	callq	*(%r15)
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_qib_teardown_sdma
	jmp	LBB0_4
LBB0_2:
	movq	_qib_sdma_event_e10_go_hw_start@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_qib_sdma_process_event
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qib_sdma_state_s00_hw_down,4,2 ## @qib_sdma_state_s00_hw_down
	.comm	_sdma_sw_clean_up_task,4,2      ## @sdma_sw_clean_up_task
	.comm	_qib_sdma_event_e10_go_hw_start,4,2 ## @qib_sdma_event_e10_go_hw_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_setup_sdma                 ; -- Begin function qib_setup_sdma
	.p2align	2
_qib_setup_sdma:                        ; @qib_setup_sdma
	.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
	mov	x19, x0
	ldr	x21, [x0, #72]
	bl	_alloc_sdma
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #72]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	add	x20, x19, #64
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _qib_sdma_state_s00_hw_down@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qib_sdma_state_s00_hw_down@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sdma_set_state
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	add	x20, x19, #56
	add	x0, x19, #60
	bl	_kref_init
	mov	x0, x20
	bl	_init_completion
	add	x0, x19, #8
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #16]
	str	xzr, [x19, #48]
	bl	_INIT_LIST_HEAD
	add	x0, x19, #4
	bl	_INIT_LIST_HEAD
Lloh3:
	adrp	x8, _sdma_sw_clean_up_task@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sdma_sw_clean_up_task@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x19
	bl	_tasklet_init
	ldr	x8, [x21]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_qib_teardown_sdma
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _qib_sdma_event_e10_go_hw_start@GOTPAGE
Lloh7:
	ldr	x8, [x8, _qib_sdma_event_e10_go_hw_start@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qib_sdma_process_event
LBB0_4:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_qib_sdma_state_s00_hw_down,4,2 ; @qib_sdma_state_s00_hw_down
	.comm	_sdma_sw_clean_up_task,4,2      ; @sdma_sw_clean_up_task
	.comm	_qib_sdma_event_e10_go_hw_start,4,2 ; @qib_sdma_event_e10_go_hw_start
.subsections_via_symbols
