	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_ring_push                  ## -- Begin function qxl_ring_push
	.p2align	4, 0x90
_qxl_ring_push:                         ## @qxl_ring_push
	.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	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movslq	8(%r15), %rax
	movq	16(%r15), %rcx
	movq	%rax, %rdx
	subq	%rcx, %rdx
	cmpq	24(%r15), %rdx
	jne	LBB0_8
## %bb.1:
	incq	%rcx
	movq	%rcx, 32(%r15)
	xorl	%eax, %eax
	callq	_mb
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	callq	_drm_can_sleep
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	24(%rbx), %rax
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_qxl_check_header
	movl	%r13d, %edi
	movl	%eax, %esi
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.5:
	callq	_wait_event_interruptible
	movl	%eax, %r12d
	testl	%eax, %eax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_11
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	_udelay
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_qxl_check_header
	testl	%eax, %eax
	je	LBB0_3
	jmp	LBB0_7
LBB0_6:
	callq	_wait_event
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_7:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	8(%r15), %eax
LBB0_8:
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	decl	%ecx
	andl	%eax, %ecx
	movq	16(%rbx), %rax
	imull	%edx, %ecx
	movslq	%ecx, %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	movq	%r13, %rsi
	callq	_memcpy
	incl	8(%r15)
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_mb
	movl	8(%r15), %eax
	cmpl	40(%r15), %eax
	jne	LBB0_10
## %bb.9:
	movl	12(%rbx), %esi
	xorl	%edi, %edi
	callq	_outb
LBB0_10:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_ring_push                  ; -- Begin function qxl_ring_push
	.p2align	2
_qxl_ring_push:                         ; @qxl_ring_push
	.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	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x24, [x0, #16]
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldrsw	x8, [x24, #8]
	ldp	x9, x10, [x24, #16]
	sub	x11, x8, x9
	cmp	x11, x10
	b.ne	LBB0_8
; %bb.1:
	add	x8, x9, #1
	str	x8, [x24, #32]
	bl	_mb
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	bl	_drm_can_sleep
	cbz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x20, #24]
	ldr	w23, [x8]
	mov	x0, x20
	bl	_qxl_check_header
	mov	x1, x0
	mov	x0, x23
	cbz	w22, LBB0_6
; %bb.3:
	bl	_wait_event_interruptible
	cbnz	w0, LBB0_11
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1
	bl	_udelay
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_qxl_check_header
	cbz	w0, LBB0_4
	b	LBB0_7
LBB0_6:
	bl	_wait_event
LBB0_7:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x24, #8]
LBB0_8:
	ldp	w9, w2, [x20]
	sub	w9, w9, #1
	and	w8, w9, w8
	ldr	x9, [x20, #16]
	ldr	x9, [x9]
	mul	w8, w2, w8
	add	x0, x9, w8, sxtw #2
	mov	x1, x21
	bl	_memcpy
	ldr	w8, [x24, #8]
	add	w8, w8, #1
	str	w8, [x24, #8]
	bl	_mb
	ldr	w8, [x24, #8]
	ldr	w9, [x24, #40]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.9:
	ldr	w1, [x20, #12]
	mov	w0, #0
	bl	_outb
LBB0_10:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
LBB0_11:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
