	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udl_init                       ## -- Begin function udl_init
	.p2align	4, 0x90
_udl_init:                              ## @udl_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	leaq	12(%rbx), %rdi
	callq	_mutex_init
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_udl_parse_vendor_descriptor
	testl	%eax, %eax
	je	LBB0_1
## %bb.6:
	movq	%rbx, %rdi
	callq	_udl_select_std_channel
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_8:
	movq	_WRITES_IN_FLIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX_TRANSFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_udl_alloc_urb_list
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movq	%r14, %rdi
	callq	_udl_modeset_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.11:
	movq	%r14, %rdi
	callq	_udl_fbdev_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.12:
	movq	%r14, %rdi
	callq	_drm_kms_helper_poll_init
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
LBB0_2:
	negl	%r15d
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_3:
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_udl_free_urb_list
LBB0_5:
	leaq	L_.str.4(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"firmware not recognized. Assume incompatible device\n"

L_.str.2:                               ## @.str.2
	.asciz	"Selecting channel failed\n"

	.comm	_WRITES_IN_FLIGHT,4,2           ## @WRITES_IN_FLIGHT
	.comm	_MAX_TRANSFER,4,2               ## @MAX_TRANSFER
L_.str.3:                               ## @.str.3
	.asciz	"udl_alloc_urb_list failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udl_init                       ; -- Begin function udl_init
	.p2align	2
_udl_init:                              ; @udl_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	add	x19, x0, #16
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	add	x0, x20, #12
	bl	_mutex_init
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_udl_parse_vendor_descriptor
	cbz	w0, LBB0_7
; %bb.1:
	mov	x0, x20
	bl	_udl_select_std_channel
	cbz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
LBB0_3:
Lloh7:
	adrp	x8, _WRITES_IN_FLIGHT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WRITES_IN_FLIGHT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _MAX_TRANSFER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX_TRANSFER@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_udl_alloc_urb_list
	cbz	w0, LBB0_8
; %bb.4:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	mov	x0, x19
	bl	_udl_modeset_init
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.5:
	mov	x0, x19
	bl	_udl_fbdev_init
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.6:
	mov	x0, x19
	bl	_drm_kms_helper_poll_init
	b	LBB0_13
LBB0_7:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh17:
	ldr	w21, [x8]
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_9:
	neg	w21, w21
	bl	_DRM_ERROR
LBB0_10:
	ldr	x8, [x20]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_udl_free_urb_list
LBB0_12:
	str	x21, [sp]
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DRM_ERROR
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"firmware not recognized. Assume incompatible device\n"

l_.str.2:                               ; @.str.2
	.asciz	"Selecting channel failed\n"

	.comm	_WRITES_IN_FLIGHT,4,2           ; @WRITES_IN_FLIGHT
	.comm	_MAX_TRANSFER,4,2               ; @MAX_TRANSFER
l_.str.3:                               ; @.str.3
	.asciz	"udl_alloc_urb_list failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"%d\n"

.subsections_via_symbols
