	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_set_create_qp_ird_cmd
_ocrdma_set_create_qp_ird_cmd:          ## @ocrdma_set_create_qp_ird_cmd
	.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, %r14
	movq	8(%rsi), %rbx
	movq	16(%rbx), %rdi
	movl	$0, -44(%rbp)
	cmpq	$0, 8(%rbx)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r12
	movl	(%rbx), %r15d
	movl	4(%rbx), %r13d
	imull	%r15d, %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rdx
	movl	%r13d, %esi
	callq	_dma_alloc_coherent
	movl	%eax, (%r12)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	xorl	%r12d, %r12d
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_memset
	movq	(%r14), %rdi
	movl	4(%rbx), %esi
	movl	-44(%rbp), %edx
	movl	%r15d, %ecx
	callq	_ocrdma_build_q_pages
	jmp	LBB0_5
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_5
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ocrdma_set_create_qp_ird_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_set_create_qp_ird_cmd
_ocrdma_set_create_qp_ird_cmd:          ; @ocrdma_set_create_qp_ird_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, [x1, #8]
	str	wzr, [sp, #12]
	ldp	x8, x0, [x23, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x21, x1
	ldp	w20, w8, [x23]
	mul	w22, w8, w20
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x2, sp, #12
	mov	x1, x22
	bl	_dma_alloc_coherent
	str	w0, [x21]
	cbz	w0, LBB0_4
; %bb.2:
	mov	w1, #0
	mov	x2, x22
	bl	_memset
	ldr	x0, [x19]
	ldr	w1, [x23, #4]
	ldr	w2, [sp, #12]
	mov	x3, x20
	bl	_ocrdma_build_q_pages
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ocrdma_set_create_qp_ird_cmd
.subsections_via_symbols
