	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdma_set_state
_sdma_set_state:                        ## @sdma_set_state
	.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
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	32(%rdi), %rcx
	movl	12(%rdi), %eax
	movl	20(%rdi), %edx
	movl	%eax, 8(%rdi)
	movl	%edx, 16(%rdi)
	movl	%esi, 12(%rdi)
	movl	%esi, %eax
	leaq	(%rax,%rax,2), %rbx
	shlq	$4, %rbx
	movq	40(%rcx,%rbx), %r11
	movq	_QIB_SDMA_SENDCTRL_OP_ENABLE@GOTPCREL(%rip), %rdx
	movq	32(%rcx,%rbx), %r10
	movq	_QIB_SDMA_SENDCTRL_OP_INTENABLE@GOTPCREL(%rip), %rax
	movq	16(%rcx,%rbx), %r8
	movq	24(%rcx,%rbx), %r9
	movq	_QIB_SDMA_SENDCTRL_OP_HALT@GOTPCREL(%rip), %rsi
	movq	_QIB_SDMA_SENDCTRL_OP_DRAIN@GOTPCREL(%rip), %r15
	cmpq	$0, 8(%rcx,%rbx)
	je	LBB0_2
## %bb.1:
	movl	$0, 24(%rdi)
LBB0_2:
	movl	(%rdx), %edx
	movl	(%rax), %eax
	movl	(%rsi), %r14d
	movl	(%r15), %esi
	cmpq	$0, (%rcx,%rbx)
	je	LBB0_4
## %bb.3:
	movl	$1, 24(%rdi)
LBB0_4:
	xorl	%ecx, %ecx
	testq	%r11, %r11
	cmovel	%ecx, %edx
	testq	%r10, %r10
	cmovel	%ecx, %eax
	orl	%edx, %eax
	testq	%r9, %r9
	cmovel	%ecx, %r14d
	testq	%r8, %r8
	cmovel	%ecx, %esi
	orl	%r14d, %esi
	orl	%eax, %esi
	movl	%esi, 20(%rdi)
	movq	(%rdi), %rax
	movq	(%rax), %rax
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QIB_SDMA_SENDCTRL_OP_ENABLE,4,2 ## @QIB_SDMA_SENDCTRL_OP_ENABLE
	.comm	_QIB_SDMA_SENDCTRL_OP_INTENABLE,4,2 ## @QIB_SDMA_SENDCTRL_OP_INTENABLE
	.comm	_QIB_SDMA_SENDCTRL_OP_HALT,4,2  ## @QIB_SDMA_SENDCTRL_OP_HALT
	.comm	_QIB_SDMA_SENDCTRL_OP_DRAIN,4,2 ## @QIB_SDMA_SENDCTRL_OP_DRAIN
	.no_dead_strip	_sdma_set_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdma_set_state
_sdma_set_state:                        ; @sdma_set_state
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #32]
	ldr	w9, [x0, #12]
	ldr	w10, [x0, #20]
	stp	w1, w10, [x0, #12]
	str	w9, [x0, #8]
	mov	w13, w1
	mov	w9, #48
	umaddl	x16, w1, w9, x8
	ldp	x12, x11, [x16, #32]
Lloh0:
	adrp	x14, _QIB_SDMA_SENDCTRL_OP_ENABLE@GOTPAGE
Lloh1:
	ldr	x14, [x14, _QIB_SDMA_SENDCTRL_OP_ENABLE@GOTPAGEOFF]
Lloh2:
	adrp	x15, _QIB_SDMA_SENDCTRL_OP_INTENABLE@GOTPAGE
Lloh3:
	ldr	x15, [x15, _QIB_SDMA_SENDCTRL_OP_INTENABLE@GOTPAGEOFF]
	ldp	x10, x9, [x16, #16]
Lloh4:
	adrp	x1, _QIB_SDMA_SENDCTRL_OP_HALT@GOTPAGE
Lloh5:
	ldr	x1, [x1, _QIB_SDMA_SENDCTRL_OP_HALT@GOTPAGEOFF]
Lloh6:
	adrp	x2, _QIB_SDMA_SENDCTRL_OP_DRAIN@GOTPAGE
Lloh7:
	ldr	x2, [x2, _QIB_SDMA_SENDCTRL_OP_DRAIN@GOTPAGEOFF]
	ldr	x16, [x16, #8]
	cbz	x16, LBB0_2
; %bb.1:
	str	wzr, [x0, #24]
LBB0_2:
	ldr	w17, [x14]
	ldr	w16, [x15]
	ldr	w15, [x1]
	ldr	w14, [x2]
	mov	w1, #48
	mul	x13, x13, x1
	ldr	x8, [x8, x13]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x0, #24]
LBB0_4:
	cmp	x11, #0
	csel	w8, wzr, w17, eq
	cmp	x12, #0
	csel	w11, wzr, w16, eq
	orr	w8, w11, w8
	cmp	x9, #0
	csel	w9, wzr, w15, eq
	orr	w8, w8, w9
	cmp	x10, #0
	csel	w9, wzr, w14, eq
	orr	w1, w8, w9
	str	w1, [x0, #20]
	ldr	x8, [x0]
	ldr	x2, [x8]
	br	x2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_QIB_SDMA_SENDCTRL_OP_ENABLE,4,2 ; @QIB_SDMA_SENDCTRL_OP_ENABLE
	.comm	_QIB_SDMA_SENDCTRL_OP_INTENABLE,4,2 ; @QIB_SDMA_SENDCTRL_OP_INTENABLE
	.comm	_QIB_SDMA_SENDCTRL_OP_HALT,4,2  ; @QIB_SDMA_SENDCTRL_OP_HALT
	.comm	_QIB_SDMA_SENDCTRL_OP_DRAIN,4,2 ; @QIB_SDMA_SENDCTRL_OP_DRAIN
	.no_dead_strip	_sdma_set_state
.subsections_via_symbols
