	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_load_edid_firmware         ## -- Begin function drm_load_edid_firmware
	.p2align	4, 0x90
_drm_load_edid_firmware:                ## @drm_load_edid_firmware
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_drm_get_connector_name
	movq	%rax, %r14
	movq	_edid_firmware@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpb	$0, (%rbx)
	je	LBB0_9
## %bb.1:
	movq	%rbx, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r12
	movl	%r12d, %edx
	subl	%ebx, %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:
	cmpb	$0, 1(%r12)
	je	LBB0_9
## %bb.4:
	incq	%r12
	movq	%r12, %rbx
LBB0_5:
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	cmpb	$10, -1(%rbx,%rax)
	jne	LBB0_7
## %bb.6:
	movb	$0, -1(%rbx,%rax)
LBB0_7:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_edid_load
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_8
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_drm_mode_connector_update_edid_property
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_drm_add_edid_modes
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r14d, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_edid_firmware,8,3              ## @edid_firmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_load_edid_firmware         ; -- Begin function drm_load_edid_firmware
	.p2align	2
_drm_load_edid_firmware:                ; @drm_load_edid_firmware
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_drm_get_connector_name
Lloh0:
	adrp	x8, _edid_firmware@GOTPAGE
Lloh1:
	ldr	x8, [x8, _edid_firmware@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldrb	w8, [x21]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x20, x0
	mov	x0, x21
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
	sub	w2, w22, w21
	mov	x0, x20
	mov	x1, x21
	bl	_strncmp
	cbnz	x0, LBB0_8
; %bb.3:
	ldrb	w8, [x22, #1]!
	cbz	w8, LBB0_8
; %bb.4:
	mov	x21, x22
LBB0_5:
	mov	x0, x21
	bl	_strlen
	add	x8, x21, w0, sxtw
	ldurb	w9, [x8, #-1]
	cmp	w9, #10
	b.ne	LBB0_7
; %bb.6:
	sturb	wzr, [x8, #-1]
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_edid_load
	mov	x20, x0
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_10
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_drm_mode_connector_update_edid_property
	mov	x0, x19
	mov	x1, x20
	bl	_drm_add_edid_modes
	mov	x19, x0
	mov	x0, x20
	bl	_kfree
	mov	x0, x19
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_edid_firmware,8,3              ; @edid_firmware
.subsections_via_symbols
