	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_mode_parse_cmdline_res_mode
_drm_mode_parse_cmdline_res_mode:       ## @drm_mode_parse_cmdline_res_mode
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r12
	leaq	-48(%rbp), %rsi
	movl	$10, %edx
	callq	_simple_strtol
	movq	-48(%rbp), %r14
	cmpq	%r12, %r14
	je	LBB0_1
## %bb.2:
	cmpb	$120, (%r14)
	jne	LBB0_1
## %bb.3:
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	incq	%r14
	movq	%r14, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	$10, %edx
	callq	_simple_strtol
	movq	-48(%rbp), %rdi
	cmpq	%r14, %rdi
	je	LBB0_1
## %bb.4:
	subl	%edi, %r12d
	addl	%ebx, %r12d
	js	LBB0_1
## %bb.5:
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	movl	$0, %ecx
	movl	$0, %edx
	testl	%r12d, %r12d
	je	LBB0_13
## %bb.6:
	movl	%r12d, %r12d
	decq	%r12
	xorl	%r14d, %r14d
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%rdi,%r14), %eax
	cmpl	$77, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$82, %eax
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, -56(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	addq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	callq	_drm_mode_parse_cmdline_extra
	testl	%eax, %eax
	jne	LBB0_17
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%r14, %r12
	je	LBB0_12
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rdi
	incq	%r14
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
LBB0_13:
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r13)
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r13)
	movl	%edx, 8(%r13)
	movl	%ecx, 12(%r13)
	jmp	LBB0_14
LBB0_17:
	movl	%eax, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_drm_mode_parse_cmdline_res_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_mode_parse_cmdline_res_mode
_drm_mode_parse_cmdline_res_mode:       ; @drm_mode_parse_cmdline_res_mode
	.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, x4
	mov	x21, x3
	mov	x22, x2
	mov	x24, x1
	mov	x25, x0
	add	x1, sp, #8
	mov	w2, #10
	bl	_simple_strtol
	ldr	x8, [sp, #8]
	cmp	x8, x25
	b.eq	LBB0_14
; %bb.1:
	ldrb	w9, [x8]
	cmp	w9, #120
	b.ne	LBB0_14
; %bb.2:
	mov	x20, x0
	add	x26, x8, #1
	str	x26, [sp, #8]
	add	x1, sp, #8
	mov	x0, x26
	mov	w2, #10
	bl	_simple_strtol
	ldr	x8, [sp, #8]
	cmp	x8, x26
	b.eq	LBB0_14
; %bb.3:
	sub	w9, w25, w8
	adds	w9, w9, w24
	b.mi	LBB0_14
; %bb.4:
	mov	x23, x0
	cbz	w9, LBB0_16
; %bb.5:
	mov	x26, #0
	mov	w25, #0
	mov	w24, #0
	sub	x27, x9, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x8, x26
	ldrsb	w8, [x0]
	cmp	w8, #77
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #82
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w24, #1
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w25, #1
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w22, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w1, #1
	mov	w2, #0
	mov	x3, x21
	mov	x4, x19
	bl	_drm_mode_parse_cmdline_extra
	cbnz	w0, LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x27, x26
	b.eq	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #8]
	add	x26, x26, #1
	b	LBB0_6
LBB0_14:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	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_16:
	mov	w24, #0
	mov	w25, #0
LBB0_17:
	mov	w0, #0
	stp	w20, w23, [x19]
	stp	w25, w24, [x19, #8]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_drm_mode_parse_cmdline_res_mode
.subsections_via_symbols
