	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_mode_displayid_detailed
_drm_mode_displayid_detailed:           ## @drm_mode_displayid_detailed
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rsi), %rax
	movq	8(%rsi), %rcx
	movl	(%rax), %edx
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %edx
	movl	%edx, -80(%rbp)                 ## 4-byte Spill
	movl	8(%rax), %r12d
	movl	(%rcx), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	4(%rcx), %r13d
	movq	16(%rsi), %rax
	movl	(%rax), %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	24(%rsi), %rax
	movl	(%rax), %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	32(%rsi), %rax
	movl	(%rax), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	40(%rsi), %rax
	movl	(%rax), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %r15d
	movq	48(%rsi), %rax
	movl	(%rax), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	56(%rsi), %rax
	movl	(%rax), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	64(%rsi), %rax
	movl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	callq	_drm_mode_create
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	-96(%rbp), %r11                 ## 8-byte Reload
	shll	$8, %r11d
	orl	-44(%rbp), %r11d                ## 4-byte Folded Reload
	movl	-84(%rbp), %r8d                 ## 4-byte Reload
	movl	%r8d, %eax
	andl	$127, %eax
	shll	$8, %eax
	orl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	movq	-112(%rbp), %r10                ## 8-byte Reload
	shll	$8, %r10d
	orl	-52(%rbp), %r10d                ## 4-byte Folded Reload
	shll	$8, %r15d
	orl	-56(%rbp), %r15d                ## 4-byte Folded Reload
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	shll	$8, %esi
	orl	-60(%rbp), %esi                 ## 4-byte Folded Reload
	movl	-88(%rbp), %r9d                 ## 4-byte Reload
	movl	%r9d, %ecx
	andl	$127, %ecx
	shll	$8, %ecx
	orl	-64(%rbp), %ecx                 ## 4-byte Folded Reload
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	shll	$8, %edi
	orl	-68(%rbp), %edi                 ## 4-byte Folded Reload
	shll	$8, %r13d
	orl	-72(%rbp), %r13d                ## 4-byte Folded Reload
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	shll	$8, %edx
	orl	-76(%rbp), %edx                 ## 4-byte Folded Reload
	shll	$16, %r12d
	orl	%edx, %r12d
	addl	%r12d, %r12d
	leal	(%r12,%r12,4), %edx
	movl	%edx, (%rbx)
	leal	1(%r13), %edx
	movl	%edx, 4(%rbx)
	leal	2(%r13,%rcx), %ecx
	movl	%ecx, 8(%rbx)
	leal	1(%rsi,%rcx), %ecx
	movl	%ecx, 12(%rbx)
	leal	2(%r13,%rdi), %ecx
	movl	%ecx, 16(%rbx)
	leal	1(%r15), %ecx
	movl	%ecx, 20(%rbx)
	leal	2(%r15,%rax), %eax
	movl	%eax, 24(%rbx)
	leal	1(%r11,%rax), %eax
	movl	%eax, 28(%rbx)
	leal	(%r15,%r10), %eax
	addl	$2, %eax
	movl	%eax, 32(%rbx)
	testb	$-128, %r9b
	movl	%r8d, %ecx
	jne	LBB0_2
## %bb.3:
	movq	_DRM_MODE_FLAG_NHSYNC@GOTPCREL(%rip), %rax
	testb	$-128, %cl
	je	LBB0_6
LBB0_5:
	movq	_DRM_MODE_FLAG_PVSYNC@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_2:
	movq	_DRM_MODE_FLAG_PHSYNC@GOTPCREL(%rip), %rax
	testb	$-128, %cl
	jne	LBB0_5
LBB0_6:
	movq	_DRM_MODE_FLAG_NVSYNC@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 44(%rbx)
	movq	_DRM_MODE_TYPE_DRIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	testb	$-128, 72(%r14)
	je	LBB0_9
## %bb.8:
	movq	_DRM_MODE_TYPE_PREFERRED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 40(%rbx)
LBB0_9:
	movq	%rbx, %rdi
	callq	_drm_mode_vrefresh
	movl	%eax, 36(%rbx)
	movq	%rbx, %rdi
	callq	_drm_mode_set_name
LBB0_10:
	movq	%rbx, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ## @DRM_MODE_FLAG_PHSYNC
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ## @DRM_MODE_FLAG_NHSYNC
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ## @DRM_MODE_FLAG_PVSYNC
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ## @DRM_MODE_FLAG_NVSYNC
	.comm	_DRM_MODE_TYPE_DRIVER,4,2       ## @DRM_MODE_TYPE_DRIVER
	.comm	_DRM_MODE_TYPE_PREFERRED,4,2    ## @DRM_MODE_TYPE_PREFERRED
	.no_dead_strip	_drm_mode_displayid_detailed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_mode_displayid_detailed
_drm_mode_displayid_detailed:           ; @drm_mode_displayid_detailed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	ldp	x8, x9, [x1]
	ldr	w11, [x8]
	ldp	w10, w8, [x8, #4]
	stp	w8, w11, [sp, #28]              ; 8-byte Folded Spill
	ldr	w8, [x9]
	stp	w8, w10, [sp, #20]              ; 8-byte Folded Spill
	ldr	w11, [x9, #4]
	ldp	x8, x9, [x1, #16]
	ldp	w10, w8, [x8]
	stp	w8, w10, [sp, #36]              ; 8-byte Folded Spill
	ldr	w8, [x9]
	stp	w8, w11, [sp, #12]              ; 8-byte Folded Spill
	ldr	w8, [x9, #4]
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	ldp	x8, x9, [x1, #32]
	ldp	w10, w8, [x8]
	stp	w8, w10, [sp, #4]               ; 8-byte Folded Spill
	ldp	w27, w28, [x9]
	ldp	x8, x9, [x1, #48]
	ldp	w23, w21, [x8]
	ldp	w24, w26, [x9]
	ldr	x8, [x1, #64]
	ldp	w22, w25, [x8]
	bl	_drm_mode_create
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.1:
	orr	w8, w22, w25, lsl #8
	ubfiz	w9, w26, #8, #7
	orr	w9, w9, w24
	orr	w10, w27, w28, lsl #8
	add	w11, w10, #2
	add	w9, w11, w9
	add	w8, w8, w9
	orr	w12, w23, w21, lsl #8
	add	w10, w10, #1
	ldp	w14, w13, [sp, #4]              ; 8-byte Folded Reload
	orr	w13, w13, w14, lsl #8
	ldr	w0, [sp, #44]                   ; 4-byte Folded Reload
	ubfiz	w14, w0, #8, #7
	ldp	w15, w16, [sp, #12]             ; 8-byte Folded Reload
	orr	w14, w14, w15
	ldp	w15, w1, [sp, #20]              ; 8-byte Folded Reload
	orr	w15, w15, w16, lsl #8
	add	w16, w15, #2
	add	w14, w16, w14
	add	w13, w13, w14
	add	w15, w15, #1
	ldr	w17, [sp, #32]                  ; 4-byte Folded Reload
	orr	w17, w17, w1, lsl #8
	ldr	w1, [sp, #28]                   ; 4-byte Folded Reload
	orr	w17, w17, w1, lsl #16
	add	w17, w17, w17, lsl #2
	lsl	w17, w17, #1
	stp	w17, w15, [x20]
	add	w13, w13, #1
	ldp	w17, w15, [sp, #36]             ; 8-byte Folded Reload
	orr	w15, w15, w17, lsl #8
	stp	w14, w13, [x20, #8]
	add	w13, w16, w15
	stp	w13, w10, [x20, #16]
	add	w8, w8, #1
	stp	w9, w8, [x20, #24]
	add	w8, w11, w12
Lloh0:
	adrp	x9, _DRM_MODE_FLAG_PHSYNC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_FLAG_PHSYNC@GOTPAGEOFF]
Lloh2:
	adrp	x10, _DRM_MODE_FLAG_NHSYNC@GOTPAGE
Lloh3:
	ldr	x10, [x10, _DRM_MODE_FLAG_NHSYNC@GOTPAGEOFF]
	str	w8, [x20, #32]
	tst	w0, #0x80
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _DRM_MODE_FLAG_PVSYNC@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DRM_MODE_FLAG_PVSYNC@GOTPAGEOFF]
Lloh6:
	adrp	x10, _DRM_MODE_FLAG_NVSYNC@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DRM_MODE_FLAG_NVSYNC@GOTPAGEOFF]
	tst	w26, #0x80
	csel	x9, x10, x9, eq
	ldr	w9, [x9]
	orr	w9, w9, w8
Lloh8:
	adrp	x8, _DRM_MODE_TYPE_DRIVER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRM_MODE_TYPE_DRIVER@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stp	w8, w9, [x20, #40]
	ldrb	w9, [x19, #72]
	tbz	w9, #7, LBB0_3
; %bb.2:
Lloh11:
	adrp	x9, _DRM_MODE_TYPE_PREFERRED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DRM_MODE_TYPE_PREFERRED@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #40]
LBB0_3:
	mov	x0, x20
	bl	_drm_mode_vrefresh
	str	w0, [x20, #36]
	mov	x0, x20
	bl	_drm_mode_set_name
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ; @DRM_MODE_FLAG_PHSYNC
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ; @DRM_MODE_FLAG_NHSYNC
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ; @DRM_MODE_FLAG_PVSYNC
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ; @DRM_MODE_FLAG_NVSYNC
	.comm	_DRM_MODE_TYPE_DRIVER,4,2       ; @DRM_MODE_TYPE_DRIVER
	.comm	_DRM_MODE_TYPE_PREFERRED,4,2    ; @DRM_MODE_TYPE_PREFERRED
	.no_dead_strip	_drm_mode_displayid_detailed
.subsections_via_symbols
