	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cudbg_read_cim_ibq
_cudbg_read_cim_ibq:                    ## @cudbg_read_cim_ibq
	.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
	subq	$40, %rsp
	.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, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_CIM_IBQ_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	shll	$4, %r13d
	leaq	-64(%rbp), %rcx
	movl	%r13d, %edx
	callq	_cudbg_get_buff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %ecx
	callq	_t4_read_cim_ibq
	testl	%eax, %eax
	jle	LBB0_2
## %bb.5:
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_cudbg_write_and_release_buff
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_2:
	movl	%eax, %ebx
	jne	LBB0_4
## %bb.3:
	movq	_CUDBG_SYSTEM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_4:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_cudbg_put_buff
LBB0_6:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CIM_IBQ_SIZE,4,2               ## @CIM_IBQ_SIZE
	.comm	_CUDBG_SYSTEM_ERROR,4,2         ## @CUDBG_SYSTEM_ERROR
	.no_dead_strip	_cudbg_read_cim_ibq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cudbg_read_cim_ibq
_cudbg_read_cim_ibq:                    ; @cudbg_read_cim_ibq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x0]
	stp	xzr, xzr, [sp]
Lloh0:
	adrp	x8, _CIM_IBQ_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CIM_IBQ_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w24, w8, #4
	mov	x3, sp
	mov	x2, x24
	bl	_cudbg_get_buff
	mov	x25, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x2, [sp]
	mov	x0, x23
	mov	x1, x22
	mov	x3, x24
	bl	_t4_read_cim_ibq
	cmp	w0, #0
	b.le	LBB0_3
; %bb.2:
	mov	x1, sp
	mov	x0, x19
	mov	x2, x21
	bl	_cudbg_write_and_release_buff
	mov	x25, x0
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _CUDBG_SYSTEM_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CUDBG_SYSTEM_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	csel	w25, w8, w0, eq
	str	w25, [x20]
	mov	x1, sp
	mov	x0, x19
	bl	_cudbg_put_buff
LBB0_4:
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CIM_IBQ_SIZE,4,2               ; @CIM_IBQ_SIZE
	.comm	_CUDBG_SYSTEM_ERROR,4,2         ; @CUDBG_SYSTEM_ERROR
	.no_dead_strip	_cudbg_read_cim_ibq
.subsections_via_symbols
