	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udl_parse_vendor_descriptor
_udl_parse_vendor_descriptor:           ## @udl_parse_vendor_descriptor
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_to_udl
	movq	%rax, %r14
	movq	_MAX_VENDOR_DESCRIPTOR_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	(%rbx), %r8d
	movq	%r15, %rdi
	movl	$95, %esi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_usb_get_descriptor
	cmpl	$6, %eax
	jl	LBB0_13
## %bb.3:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	%r13, %rdx
	callq	_DRM_INFO
	movsbl	(%r13), %eax
	cmpl	%eax, %r15d
	jne	LBB0_12
## %bb.4:
	cmpb	$95, 1(%r13)
	jne	LBB0_12
## %bb.5:
	cmpb	$1, 2(%r13)
	jne	LBB0_12
## %bb.6:
	cmpb	$0, 3(%r13)
	jne	LBB0_12
## %bb.7:
	movsbl	4(%r13), %eax
	leal	-2(%r15), %ecx
	cmpl	%eax, %ecx
	jne	LBB0_12
## %bb.8:
	movl	%r15d, %ebx
	addq	%r13, %rbx
	movq	%r13, %r12
	addq	$5, %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_ERROR
LBB0_13:
	movq	%r13, %rdi
	callq	_kfree
	movl	$1, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	%r15, %r12
	cmpq	%rbx, %r12
	jae	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_le16_to_cpu
	movsbq	4(%r12), %r15
	addq	$5, %r12
	cmpl	$512, %eax                      ## imm = 0x200
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r12), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG
	movl	%ebx, (%r14)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_VENDOR_DESCRIPTOR_SIZE,4,2 ## @MAX_VENDOR_DESCRIPTOR_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vendor descriptor length:%x data:%11ph\n"

L_.str.1:                               ## @.str.1
	.asciz	"DL chip limited to %d pixel modes\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unrecognized vendor firmware descriptor\n"

	.no_dead_strip	_udl_parse_vendor_descriptor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udl_parse_vendor_descriptor
_udl_parse_vendor_descriptor:           ; @udl_parse_vendor_descriptor
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	bl	_to_udl
	mov	x19, x0
Lloh0:
	adrp	x22, _MAX_VENDOR_DESCRIPTOR_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAX_VENDOR_DESCRIPTOR_SIZE@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	ldr	w4, [x22]
	mov	x0, x21
	mov	w1, #95
	mov	w2, #0
	mov	x3, x20
	bl	_usb_get_descriptor
	cmp	w0, #6
	b.lt	LBB0_9
; %bb.2:
	mov	x21, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_DRM_INFO
	ldrsb	w8, [x20]
	cmp	w21, w8
	b.ne	LBB0_8
; %bb.3:
	ldrb	w8, [x20, #1]
	cmp	w8, #95
	b.ne	LBB0_8
; %bb.4:
	ldrb	w8, [x20, #2]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.5:
	ldrb	w8, [x20, #3]
	cbnz	w8, LBB0_8
; %bb.6:
	ldrsb	w8, [x20, #4]
	sub	w9, w21, #2
	cmp	w9, w8
	b.ne	LBB0_8
; %bb.7:
	add	x23, x20, w21, uxtw
	add	x22, x20, #5
Lloh7:
	adrp	x21, l_.str.1@PAGE
Lloh8:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_8:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
LBB0_9:
	mov	x0, x20
	bl	_kfree
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x22, x25, x24
	cmp	x22, x23
	b.hs	LBB0_9
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_le16_to_cpu
	ldrsb	x24, [x22, #4]
	add	x25, x22, #5
	cmp	w0, #512
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x25]
	bl	_le32_to_cpu
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_DRM_DEBUG
	str	w22, [x19]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_VENDOR_DESCRIPTOR_SIZE,4,2 ; @MAX_VENDOR_DESCRIPTOR_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vendor descriptor length:%x data:%11ph\n"

l_.str.1:                               ; @.str.1
	.asciz	"DL chip limited to %d pixel modes\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unrecognized vendor firmware descriptor\n"

	.no_dead_strip	_udl_parse_vendor_descriptor
.subsections_via_symbols
