	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvrdma_cmd_post                ## -- Begin function pvrdma_cmd_post
	.p2align	4, 0x90
_pvrdma_cmd_post:                       ## @pvrdma_cmd_post
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_down
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_BUILD_BUG_ON
	leaq	20(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movl	24(%rbx), %edi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, %rdi
	callq	_spin_unlock
	leaq	16(%rbx), %rdi
	callq	_init_completion
	movq	_PVRDMA_REG_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_pvrdma_write_reg
	xorl	%eax, %eax
	callq	_mb
	movq	_PVRDMA_REG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pvrdma_read_reg
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
	movq	_EFAULT@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_4
LBB0_1:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	testq	%r12, %r12
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_pvrdma_cmd_recv
	movl	%eax, %r14d
LBB0_4:
	movq	%rbx, %rdi
	callq	_up
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"post request to device\n"

	.comm	_PVRDMA_REG_REQUEST,4,2         ## @PVRDMA_REG_REQUEST
	.comm	_PVRDMA_REG_ERR,4,2             ## @PVRDMA_REG_ERR
L_.str.1:                               ## @.str.1
	.asciz	"failed to write request error reg: %d\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvrdma_cmd_post                ; -- Begin function pvrdma_cmd_post
	.p2align	2
_pvrdma_cmd_post:                       ; @pvrdma_cmd_post
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_down
	mov	w0, #0
	bl	_BUILD_BUG_ON
	add	x23, x19, #20
	mov	x0, x23
	bl	_spin_lock
	ldr	w0, [x19, #24]
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
	mov	x0, x23
	bl	_spin_unlock
	add	x0, x19, #16
	bl	_init_completion
Lloh2:
	adrp	x8, _PVRDMA_REG_REQUEST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PVRDMA_REG_REQUEST@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_pvrdma_write_reg
	bl	_mb
Lloh5:
	adrp	x8, _PVRDMA_REG_ERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PVRDMA_REG_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pvrdma_read_reg
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	x0, [x19, #8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
Lloh10:
	adrp	x8, _EFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_2:
	cbz	x21, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_pvrdma_cmd_recv
	mov	x20, x0
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x19
	bl	_up
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"post request to device\n"

	.comm	_PVRDMA_REG_REQUEST,4,2         ; @PVRDMA_REG_REQUEST
	.comm	_PVRDMA_REG_ERR,4,2             ; @PVRDMA_REG_ERR
l_.str.1:                               ; @.str.1
	.asciz	"failed to write request error reg: %d\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
.subsections_via_symbols
