	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_parse_command_line_for_connector ## -- Begin function drm_mode_parse_command_line_for_connector
	.p2align	4, 0x90
_drm_mode_parse_command_line_for_connector: ## @drm_mode_parse_command_line_for_connector
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	$0, -96(%rbp)
	movq	$0, -64(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movsbl	(%rdi), %edi
	callq	_isdigit
	movb	$1, %cl
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	cmpb	$120, (%r14)
	je	LBB0_8
## %bb.4:
	movq	%r14, %rdi
	callq	_strlen
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.6:
	movl	$1, %r12d
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	movq	%rbx, %r15
	movq	%rbx, %rcx
	movq	%r13, %r8
	callq	_drm_mode_parse_cmdline_extra
	testl	%eax, %eax
	je	LBB0_38
## %bb.7:
	xorl	%ecx, %ecx
	movq	%r15, %rbx
	jmp	LBB0_8
LBB0_1:
	movl	$0, (%r13)
	xorl	%r12d, %r12d
	jmp	LBB0_38
LBB0_5:
	xorl	%ecx, %ecx
LBB0_8:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	$45, %esi
	callq	_strchr
	testq	%rax, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	je	LBB0_9
## %bb.10:
	movl	%eax, %r15d
	subl	%r14d, %r15d
	movl	$1, 4(%r13)
	jmp	LBB0_11
LBB0_9:
	xorl	%r15d, %r15d
LBB0_11:
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_strchr
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	xorl	%r12d, %r12d
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_38
## %bb.14:
	movq	%r13, %rax
	movl	%ebx, %r13d
	subl	%r14d, %r13d
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$1, 8(%rax)
	jmp	LBB0_15
LBB0_12:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
LBB0_15:
	movq	%r14, %rdi
	movl	$44, %esi
	callq	_strchr
	movq	%rax, %r12
	subl	%r14d, %eax
	xorl	%edx, %edx
	testq	%r12, %r12
	cmovel	%edx, %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	testq	%rcx, %rcx
	cmovnel	%r15d, %r13d
	orq	%rbx, %rcx
	cmovel	%eax, %r13d
	jne	LBB0_18
## %bb.16:
	testq	%r12, %r12
	jne	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %r13d
	movl	$1, %edx
LBB0_18:
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_19
## %bb.22:
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %r8
	callq	_drm_mode_parse_cmdline_res_mode
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_38
	jmp	LBB0_23
LBB0_19:
	leal	1(%r13), %r15d
	movq	_DRM_DISPLAY_MODE_LEN@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpl	(%rax), %r15d
	ja	LBB0_38
## %bb.20:
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_drm_named_mode_is_in_whitelist
	testl	%eax, %eax
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_38
## %bb.21:
	movl	12(%r13), %edi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_strscpy
LBB0_23:
	movl	$1, (%r13)
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.24:
	leaq	-96(%rbp), %rsi
	movq	%r13, %rdx
	callq	_drm_mode_parse_cmdline_bpp
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_38
## %bb.25:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.26:
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdx
	callq	_drm_mode_parse_cmdline_refresh
	testl	%eax, %eax
	jne	LBB0_38
## %bb.27:
	movq	-96(%rbp), %rdi
	movq	-64(%rbp), %rsi
	callq	_max
	jmp	LBB0_32
LBB0_29:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_30
## %bb.39:
	leaq	-64(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_drm_mode_parse_cmdline_refresh
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_38
LBB0_30:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:
	movq	-64(%rbp), %rax
	jmp	LBB0_32
LBB0_28:
	movq	-96(%rbp), %rax
LBB0_32:
	testq	%rax, %rax
	je	LBB0_35
## %bb.33:
	movq	%rax, %rbx
	cmpq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_35
## %bb.34:
	movq	%r14, %rdi
	callq	_strlen
	movl	%r14d, %esi
	movq	%rbx, %rdi
	subl	%edi, %esi
	addl	%eax, %esi
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	callq	_drm_mode_parse_cmdline_extra
	testl	%eax, %eax
	jne	LBB0_38
LBB0_35:
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_37
## %bb.36:
	movq	%r14, %rdi
	callq	_strlen
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	subl	%edi, %r14d
	addl	%eax, %r14d
	movl	%r14d, %esi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	callq	_drm_mode_parse_cmdline_options
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_38
LBB0_37:
	movl	$1, %r12d
LBB0_38:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_DISPLAY_MODE_LEN,4,2       ## @DRM_DISPLAY_MODE_LEN
	.comm	_fb_mode_option,8,3             ## @fb_mode_option
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_parse_command_line_for_connector ; -- Begin function drm_mode_parse_command_line_for_connector
	.p2align	2
_drm_mode_parse_command_line_for_connector: ; @drm_mode_parse_command_line_for_connector
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x2
	stp	xzr, xzr, [sp]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	ldrsb	w0, [x0]
	bl	_isdigit
	cbnz	w0, LBB0_3
; %bb.2:
	ldrb	w8, [x21]
	cmp	w8, #120
	b.ne	LBB0_25
LBB0_3:
	mov	w25, #1
LBB0_4:
	mov	x0, x21
	mov	w1, #45
	bl	_strchr
	mov	x24, x0
	cbz	x0, LBB0_7
; %bb.5:
	sub	w26, w24, w21
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_8
LBB0_6:
	mov	w23, #0
	str	wzr, [x19]
	b	LBB0_37
LBB0_7:
	mov	w26, #0
LBB0_8:
	mov	x0, x21
	mov	w1, #64
	bl	_strchr
	mov	x23, x0
	cbz	x0, LBB0_11
; %bb.9:
	cbz	w25, LBB0_36
; %bb.10:
	sub	w27, w23, w21
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_12
LBB0_11:
	mov	w27, #0
LBB0_12:
	orr	x28, x24, x23
	mov	x0, x21
	mov	w1, #44
	bl	_strchr
	mov	x22, x0
	mov	w2, #0
	sub	w8, w22, w21
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	cmp	x24, #0
	csel	w9, w26, w27, ne
	cmp	x28, #0
	csel	w1, w9, w8, ne
	cbnz	x28, LBB0_15
; %bb.13:
	cbnz	x22, LBB0_15
; %bb.14:
	mov	x0, x21
	bl	_strlen
	mov	x1, x0
	mov	w2, #1
LBB0_15:
	tbz	w25, #0, LBB0_17
; %bb.16:
	mov	x0, x21
	mov	x3, x20
	mov	x4, x19
	bl	_drm_mode_parse_cmdline_res_mode
	cbnz	w0, LBB0_36
	b	LBB0_20
LBB0_17:
	add	w25, w1, #1
Lloh0:
	adrp	x8, _DRM_DISPLAY_MODE_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_DISPLAY_MODE_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w25, w8
	b.hi	LBB0_36
; %bb.18:
	mov	x0, x21
	bl	_drm_named_mode_is_in_whitelist
	cbz	w0, LBB0_36
; %bb.19:
	ldr	w0, [x19, #12]
	mov	x1, x21
	mov	x2, x25
	bl	_strscpy
LBB0_20:
	mov	w8, #1
	str	w8, [x19]
	cbz	x24, LBB0_28
; %bb.21:
	add	x1, sp, #8
	mov	x0, x24
	mov	x2, x19
	bl	_drm_mode_parse_cmdline_bpp
	cbnz	w0, LBB0_36
; %bb.22:
	cbz	x23, LBB0_31
; %bb.23:
	mov	x1, sp
	mov	x0, x23
	mov	x2, x19
	bl	_drm_mode_parse_cmdline_refresh
	cbnz	w0, LBB0_36
; %bb.24:
	ldp	x1, x0, [sp]
	bl	_max
	mov	x23, x0
	cbnz	x23, LBB0_32
	b	LBB0_34
LBB0_25:
	mov	x0, x21
	bl	_strlen
	cmp	w0, #1
	b.ne	LBB0_27
; %bb.26:
	mov	w23, #1
	mov	x0, x21
	mov	w1, #1
	mov	w2, #1
	mov	x3, x20
	mov	x4, x19
	bl	_drm_mode_parse_cmdline_extra
	cbz	w0, LBB0_37
LBB0_27:
	mov	w25, #0
	b	LBB0_4
LBB0_28:
	cbz	x23, LBB0_30
; %bb.29:
	mov	x1, sp
	mov	x0, x23
	mov	x2, x19
	bl	_drm_mode_parse_cmdline_refresh
	cbnz	w0, LBB0_36
LBB0_30:
	ldr	x8, [sp]
	cmp	x23, #0
	csel	x23, x8, xzr, ne
	cbnz	x23, LBB0_32
	b	LBB0_34
LBB0_31:
	ldr	x23, [sp, #8]
	cbz	x23, LBB0_34
LBB0_32:
	cmp	x23, x22
	b.eq	LBB0_34
; %bb.33:
	mov	x0, x21
	bl	_strlen
	sub	w8, w21, w23
	add	w1, w0, w8
	mov	x0, x23
	mov	w2, #0
	mov	x3, x20
	mov	x4, x19
	bl	_drm_mode_parse_cmdline_extra
	mov	w23, #0
	cbnz	w0, LBB0_37
LBB0_34:
	cbz	x22, LBB0_38
; %bb.35:
	mov	x0, x21
	bl	_strlen
	sub	w8, w21, w22
	add	w1, w0, w8
	mov	x0, x22
	mov	x2, x20
	mov	x3, x19
	bl	_drm_mode_parse_cmdline_options
	cbz	w0, LBB0_38
LBB0_36:
	mov	w23, #0
LBB0_37:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_38:
	mov	w23, #1
	b	LBB0_37
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_DISPLAY_MODE_LEN,4,2       ; @DRM_DISPLAY_MODE_LEN
	.comm	_fb_mode_option,8,3             ; @fb_mode_option
.subsections_via_symbols
