	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bdisp_hw_get_inc
_bdisp_hw_get_inc:                      ## @bdisp_hw_get_inc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rcx
	cmpl	%edi, %esi
	jne	LBB0_4
## %bb.3:
	movl	$1024, (%rcx)                   ## imm = 0x400
	jmp	LBB0_7
LBB0_4:
	shll	$10, %edi
	movl	%edi, %eax
	cltd
	idivl	%esi
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jg	LBB0_1
## %bb.5:
	testl	%eax, %eax
	je	LBB0_1
## %bb.6:
	movl	%eax, (%rcx)
LBB0_7:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bdisp_hw_get_inc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bdisp_hw_get_inc
_bdisp_hw_get_inc:                      ; @bdisp_hw_get_inc
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_4
; %bb.1:
	cmp	w1, w0
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	mov	w8, #1024
	str	w8, [x2]
	ret
LBB0_3:
	lsl	w8, w0, #10
	sdiv	w8, w8, w1
	cmp	w8, #16, lsl #12                ; =65536
	ccmp	w8, #0, #4, lt
	b.ne	LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_5:
	mov	w0, #0
	str	w8, [x2]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bdisp_hw_get_inc
.subsections_via_symbols
