	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_displayid_detailed_1_modes
_add_displayid_detailed_1_modes:        ## @add_displayid_detailed_1_modes
	.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	(%rsi), %eax
	imull	$-858993459, %eax, %ecx         ## imm = 0xCCCCCCCD
	addl	$429496728, %ecx                ## imm = 0x19999998
	rorl	$2, %ecx
	xorl	%r13d, %r13d
	cmpl	$214748364, %ecx                ## imm = 0xCCCCCCC
	ja	LBB0_6
## %bb.1:
	cmpl	$20, %eax
	jl	LBB0_6
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	%eax, %eax
	movl	$3435973837, %r12d              ## imm = 0xCCCCCCCD
	imulq	%rax, %r12
	shrq	$34, %r12
	andl	$-4, %r12d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %rbx
	cmpq	%rbx, %r12
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	movl	(%r15), %edi
	callq	_drm_mode_displayid_detailed
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_drm_mode_probed_add
	incl	%r13d
	jmp	LBB0_5
LBB0_6:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_add_displayid_detailed_1_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_displayid_detailed_1_modes
_add_displayid_detailed_1_modes:        ; @add_displayid_detailed_1_modes
	.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
	ldr	w8, [x1]
	mov	w9, #52429
	movk	w9, #52428, lsl #16
	mov	w10, #39320
	movk	w10, #6553, lsl #16
	madd	w10, w8, w9, w10
	ror	w10, w10, #2
	mov	w11, #52428
	movk	w11, #3276, lsl #16
	cmp	w10, w11
	ccmp	w8, #20, #8, ls
	b.ge	LBB0_3
; %bb.1:
	mov	w21, #0
LBB0_2:
	mov	x0, x21
	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
LBB0_3:
	mov	x19, x1
	mov	x20, x0
	mov	x22, #0
	mov	w21, #0
	umull	x8, w8, w9
	lsr	x8, x8, #34
	and	x23, x8, #0x3ffffffc
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #4
	cmp	x23, x22
	b.eq	LBB0_2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x1, x8, x22
	ldr	w0, [x20]
	bl	_drm_mode_displayid_detailed
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x0
	mov	x0, x20
	bl	_drm_mode_probed_add
	add	w21, w21, #1
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_add_displayid_detailed_1_modes
.subsections_via_symbols
