	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gm12u320_usb_probe
_gm12u320_usb_probe:                    ## @gm12u320_usb_probe
	.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	8(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_interface_to_usbdev
	movl	%eax, 68(%r12)
	leaq	56(%r12), %rbx
	leaq	64(%r12), %rdi
	movq	_gm12u320_fb_update_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	60(%r12), %rdi
	callq	_mutex_init
	movq	%rbx, %rdi
	callq	_init_waitqueue_head
	leaq	8(%r12), %r14
	movq	_gm12u320_drm_driver@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_drm_dev_init
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_14
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	%r12, 48(%r12)
	movq	%r14, %rdi
	callq	_drm_mode_config_init
	movq	_GM12U320_USER_WIDTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r12)
	movq	%rax, 32(%r12)
	movq	_GM12U320_HEIGHT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r12)
	movq	%rax, 16(%r12)
	movq	_gm12u320_mode_config_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r12)
	movq	%r12, %rdi
	callq	_gm12u320_usb_alloc
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	movq	%r12, %rdi
	callq	_gm12u320_set_ecomode
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movq	%r12, %rdi
	callq	_gm12u320_conn_init
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	%r12, %rbx
	addq	$4, %rbx
	movq	_gm12u320_pipe_formats@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r13d, %edi
	callq	_ARRAY_SIZE
	movq	_gm12u320_pipe_modifiers@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r12, (%rsp)
	movq	_gm12u320_pipe_funcs@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_drm_simple_display_pipe_init
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	%r14, %rdi
	callq	_drm_mode_config_reset
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_usb_set_intfdata
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_drm_dev_register
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_12
LBB0_13:
	movq	%r14, %rdi
	callq	_drm_dev_put
	movl	%r13d, %ebx
	jmp	LBB0_14
LBB0_12:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_drm_fbdev_generic_setup
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_gm12u320_fb_update_work,4,2    ## @gm12u320_fb_update_work
	.comm	_gm12u320_drm_driver,4,2        ## @gm12u320_drm_driver
	.comm	_GM12U320_USER_WIDTH,8,3        ## @GM12U320_USER_WIDTH
	.comm	_GM12U320_HEIGHT,8,3            ## @GM12U320_HEIGHT
	.comm	_gm12u320_mode_config_funcs,4,2 ## @gm12u320_mode_config_funcs
	.comm	_gm12u320_pipe_funcs,4,2        ## @gm12u320_pipe_funcs
	.comm	_gm12u320_pipe_formats,4,2      ## @gm12u320_pipe_formats
	.comm	_gm12u320_pipe_modifiers,4,2    ## @gm12u320_pipe_modifiers
	.no_dead_strip	_gm12u320_usb_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gm12u320_usb_probe
_gm12u320_usb_probe:                    ; @gm12u320_usb_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x19, x0
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.5:
	mov	x21, x0
	mov	x0, x19
	bl	_interface_to_usbdev
	str	w0, [x21, #68]
	add	x20, x21, #56
	add	x0, x21, #64
Lloh5:
	adrp	x8, _gm12u320_fb_update_work@GOTPAGE
Lloh6:
	ldr	x8, [x8, _gm12u320_fb_update_work@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x21, #60
	bl	_mutex_init
	mov	x0, x20
	bl	_init_waitqueue_head
	add	x20, x21, #8
Lloh8:
	adrp	x1, _gm12u320_drm_driver@GOTPAGE
Lloh9:
	ldr	x1, [x1, _gm12u320_drm_driver@GOTPAGEOFF]
	mov	x0, x20
	mov	x2, x19
	bl	_drm_dev_init
	cbz	w0, LBB0_8
; %bb.6:
	mov	x22, x0
	mov	x0, x21
	bl	_kfree
	b	LBB0_3
LBB0_7:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_8:
	str	x21, [x21, #48]
	mov	x0, x20
	bl	_drm_mode_config_init
Lloh12:
	adrp	x8, _GM12U320_USER_WIDTH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GM12U320_USER_WIDTH@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x21, #40]
Lloh15:
	adrp	x9, _GM12U320_HEIGHT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _GM12U320_HEIGHT@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	stp	x9, x8, [x21, #24]
Lloh18:
	adrp	x8, _gm12u320_mode_config_funcs@GOTPAGE
Lloh19:
	ldr	x8, [x8, _gm12u320_mode_config_funcs@GOTPAGEOFF]
	stp	x8, x9, [x21, #8]
	mov	x0, x21
	bl	_gm12u320_usb_alloc
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.9:
	mov	x0, x21
	bl	_gm12u320_set_ecomode
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.10:
	mov	x0, x21
	bl	_gm12u320_conn_init
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.11:
	add	x22, x21, #4
Lloh20:
	adrp	x8, _gm12u320_pipe_formats@GOTPAGE
Lloh21:
	ldr	x8, [x8, _gm12u320_pipe_formats@GOTPAGEOFF]
Lloh22:
	ldr	w23, [x8]
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x4, x0
Lloh23:
	adrp	x8, _gm12u320_pipe_modifiers@GOTPAGE
Lloh24:
	ldr	x8, [x8, _gm12u320_pipe_modifiers@GOTPAGEOFF]
Lloh25:
	ldr	w5, [x8]
Lloh26:
	adrp	x2, _gm12u320_pipe_funcs@GOTPAGE
Lloh27:
	ldr	x2, [x2, _gm12u320_pipe_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x22
	mov	x3, x23
	mov	x6, x21
	bl	_drm_simple_display_pipe_init
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_drm_mode_config_reset
	mov	x0, x19
	mov	x1, x20
	bl	_usb_set_intfdata
	mov	x0, x20
	mov	w1, #0
	bl	_drm_dev_register
	mov	x22, x0
	cbz	w0, LBB0_14
LBB0_13:
	mov	x0, x20
	bl	_drm_dev_put
	b	LBB0_3
LBB0_14:
	mov	x0, x20
	mov	w1, #0
	bl	_drm_fbdev_generic_setup
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_gm12u320_fb_update_work,4,2    ; @gm12u320_fb_update_work
	.comm	_gm12u320_drm_driver,4,2        ; @gm12u320_drm_driver
	.comm	_GM12U320_USER_WIDTH,8,3        ; @GM12U320_USER_WIDTH
	.comm	_GM12U320_HEIGHT,8,3            ; @GM12U320_HEIGHT
	.comm	_gm12u320_mode_config_funcs,4,2 ; @gm12u320_mode_config_funcs
	.comm	_gm12u320_pipe_funcs,4,2        ; @gm12u320_pipe_funcs
	.comm	_gm12u320_pipe_formats,4,2      ; @gm12u320_pipe_formats
	.comm	_gm12u320_pipe_modifiers,4,2    ; @gm12u320_pipe_modifiers
	.no_dead_strip	_gm12u320_usb_probe
.subsections_via_symbols
