	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i85x_get_fifo_size
_i85x_get_fifo_size:                    ## @i85x_get_fifo_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	_DSPARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %esi
	movq	_DSPARB_BEND_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %ebx
	sarl	%cl, %ebx
	andl	$511, %esi                      ## imm = 0x1FF
	andl	$511, %ebx                      ## imm = 0x1FF
	subl	%esi, %ebx
	testl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rcx, %rdx
	cmovel	%esi, %ebx
	sarl	%ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %ecx
	callq	_DRM_DEBUG_KMS
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSPARB,4,2                     ## @DSPARB
	.comm	_DSPARB_BEND_SHIFT,4,2          ## @DSPARB_BEND_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FIFO size - (0x%08x) %s: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"B"

L_.str.2:                               ## @.str.2
	.asciz	"A"

	.no_dead_strip	_i85x_get_fifo_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i85x_get_fifo_size
_i85x_get_fifo_size:                    ; @i85x_get_fifo_size
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _DSPARB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSPARB@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x1, x0
	and	w8, w0, #0x1ff
Lloh3:
	adrp	x9, _DSPARB_BEND_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DSPARB_BEND_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w9, w0, w9
	and	w9, w9, #0x1ff
	sub	w9, w9, w8
Lloh6:
	adrp	x10, l_.str.1@PAGE
Lloh7:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh8:
	adrp	x11, l_.str.2@PAGE
Lloh9:
	add	x11, x11, l_.str.2@PAGEOFF
	cmp	w19, #0
	csel	w8, w8, w9, eq
	csel	x2, x11, x10, eq
	asr	w19, w8, #1
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x19
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DSPARB,4,2                     ; @DSPARB
	.comm	_DSPARB_BEND_SHIFT,4,2          ; @DSPARB_BEND_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FIFO size - (0x%08x) %s: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"B"

l_.str.2:                               ; @.str.2
	.asciz	"A"

	.no_dead_strip	_i85x_get_fifo_size
.subsections_via_symbols
