	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_create_mq_eq
_ocrdma_create_mq_eq:                   ## @ocrdma_create_mq_eq
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	_BE_INTERRUPT_MODE_INTX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_2
LBB0_5:
	movl	16(%r12), %eax
	subl	20(%r12), %eax
	xorl	%r14d, %r14d
	cmpl	$1, %eax
	jg	LBB0_2
## %bb.6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %ebx
	jmp	LBB0_8
LBB0_2:
	leaq	4(%r12), %r15
	movq	_OCRDMA_EQ_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ocrdma_create_eq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movl	(%r12), %edx
	movl	4(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_sprintf
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ocrdma_get_irq
	movq	_ocrdma_irq_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	4(%r12), %ecx
	movl	%eax, %edi
	movq	%r14, %rdx
	movq	%r15, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:
	movl	%eax, %ebx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	__ocrdma_destroy_eq
	jmp	LBB0_8
LBB0_4:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BE_INTERRUPT_MODE_INTX,8,3     ## @BE_INTERRUPT_MODE_INTX
	.comm	_IRQF_SHARED,8,3                ## @IRQF_SHARED
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_OCRDMA_EQ_LEN,4,2              ## @OCRDMA_EQ_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ocrdma_mq%d"

	.comm	_ocrdma_irq_handler,4,2         ## @ocrdma_irq_handler
	.no_dead_strip	_ocrdma_create_mq_eq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_create_mq_eq
_ocrdma_create_mq_eq:                   ; @ocrdma_create_mq_eq
	.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	x8, [x0, #8]
Lloh0:
	adrp	x9, _BE_INTERRUPT_MODE_INTX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BE_INTERRUPT_MODE_INTX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	b	LBB0_5
LBB0_2:
	ldp	w8, w9, [x19, #16]
	sub	w8, w8, w9
	cmp	w8, #1
	b.gt	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_4:
	mov	x21, #0
LBB0_5:
	add	x20, x19, #4
Lloh9:
	adrp	x8, _OCRDMA_EQ_LEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OCRDMA_EQ_LEN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_ocrdma_create_eq
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.6:
	ldp	w2, w0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sprintf
	mov	x0, x19
	mov	x1, x20
	bl	_ocrdma_get_irq
Lloh14:
	adrp	x8, _ocrdma_irq_handler@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ocrdma_irq_handler@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w3, [x19, #4]
	mov	x2, x21
	mov	x4, x20
	bl	_request_irq
	mov	x22, x0
	cbz	w0, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	bl	__ocrdma_destroy_eq
LBB0_8:
	mov	x0, x22
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BE_INTERRUPT_MODE_INTX,8,3     ; @BE_INTERRUPT_MODE_INTX
	.comm	_IRQF_SHARED,8,3                ; @IRQF_SHARED
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_OCRDMA_EQ_LEN,4,2              ; @OCRDMA_EQ_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ocrdma_mq%d"

	.comm	_ocrdma_irq_handler,4,2         ; @ocrdma_irq_handler
	.no_dead_strip	_ocrdma_create_mq_eq
.subsections_via_symbols
