	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udl_get_edid_block
_udl_get_edid_block:                    ## @udl_get_edid_block
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$2, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.3:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_EDID_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	imull	-44(%rbp), %r15d                ## 4-byte Folded Reload
	addl	%r12d, %r15d
	shll	$8, %r15d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r13d
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	subq	$8, %rsp
	movl	%r13d, %edi
	movl	%eax, %esi
	movl	$2, %edx
	movl	$192, %ecx
	movl	%r15d, %r8d
	movl	$161, %r9d
	pushq	%r10
	pushq	$2
	pushq	%r14
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	jle	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r14), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r12,4)
	incq	%r12
	cmpq	%r12, %rbx
	jne	LBB0_4
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_1:
	movl	$-1, %ebx
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_DRM_ERROR
	movl	$-1, %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_kfree
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_EDID_LENGTH,4,2                ## @EDID_LENGTH
	.comm	_HZ,4,2                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Read EDID byte %d failed err %x\n"

	.no_dead_strip	_udl_get_edid_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udl_get_edid_block
_udl_get_edid_block:                    ; @udl_get_edid_block
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #2
	bl	_kmalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	cbz	x20, LBB0_8
; %bb.2:
	mov	x24, #0
Lloh3:
	adrp	x27, _EDID_LENGTH@GOTPAGE
Lloh4:
	ldr	x27, [x27, _EDID_LENGTH@GOTPAGEOFF]
Lloh5:
	adrp	x28, _HZ@GOTPAGE
Lloh6:
	ldr	x28, [x28, _HZ@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x27]
	madd	w8, w8, w21, w24
	lsl	w25, w8, #8
	ldr	w26, [x23]
	mov	x0, x26
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
	ldr	w8, [x28]
	str	w8, [sp]
	mov	x0, x26
	mov	w2, #2
	mov	w3, #192
	mov	x4, x25
	mov	w5, #161
	mov	x6, x19
	mov	w7, #2
	bl	_usb_control_msg
	cmp	w0, #0
	b.le	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #4]
	str	w8, [x22, x24, lsl #2]
	add	x24, x24, #1
	cmp	x20, x24
	b.ne	LBB0_3
; %bb.5:
	mov	w20, #0
	b	LBB0_8
LBB0_6:
	mov	w20, #-1
	b	LBB0_9
LBB0_7:
	mov	x2, x0
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	bl	_DRM_ERROR
	mov	w20, #-1
LBB0_8:
	mov	x0, x19
	bl	_kfree
LBB0_9:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_EDID_LENGTH,4,2                ; @EDID_LENGTH
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Read EDID byte %d failed err %x\n"

	.no_dead_strip	_udl_get_edid_block
.subsections_via_symbols
