	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ap_probe
_ap_probe:                              ## @ap_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_interface_to_usbdev
	movl	%eax, %edi
	callq	_usb_get_dev
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_apb_get_cport_count
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	_ES2_GBUF_MSG_SIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_es2_driver@GOTPCREL(%rip), %rdi
	movq	%r13, %rsi
	movl	%ebx, %ecx
	callq	_gb_hd_create
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%r13, %rdi
	callq	_usb_put_dev
	movq	%r15, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	%r13, %rdi
	callq	_usb_put_dev
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_47
LBB0_4:
	movq	%r15, %rdi
	callq	_hd_to_es2
	movq	%rax, %r14
	movq	%r15, 112(%rax)
	movq	%r12, 104(%rax)
	movq	%r13, 96(%rax)
	leaq	92(%rax), %rdi
	callq	_spin_lock_init
	movl	88(%r14), %edi
	callq	_INIT_KFIFO
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_usb_set_intfdata
	movq	_ES2_CPORT_CDSI0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gb_hd_cport_reserve
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_46
## %bb.5:
	movq	_ES2_CPORT_CDSI1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gb_hd_cport_reserve
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_46
## %bb.6:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rbx
	cmpl	$0, 8(%rbx)
	jle	LBB0_44
## %bb.7:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_11 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, 16(%rax)
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_9:                                 ##   in Loop: Header=BB0_11 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r14
	movslq	8(%rbx), %rax
	addq	$8, %r15
	cmpq	%rax, %r14
	jge	LBB0_22
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r12
	movq	(%r12,%r15), %r13
	addq	%r15, %r12
	movq	%r12, %rdi
	callq	_usb_endpoint_is_bulk_in
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	callq	_dev_warn
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %rdi
	callq	_usb_endpoint_is_bulk_out
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdx
	callq	_dev_warn
	movl	$1, -56(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_10
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdx
	callq	_dev_warn
	jmp	LBB0_9
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, 64(%rax)
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	$1, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_10
LBB0_21:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, 80(%rax)
	movl	$1, -56(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_10
LBB0_22:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_44
## %bb.23:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_44
## %bb.24:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_44
## %bb.25:
	movq	_NUM_CPORT_IN_URB@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_30
## %bb.26:
	xorl	%r15d, %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_48
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%rax, %r12
	movq	24(%r14), %rax
	movq	%r12, (%rax,%r15,8)
	movq	_ES2_GBUF_MSG_SIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_49
## %bb.29:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%rax, %rbx
	movq	16(%r14), %rsi
	movq	%r13, %rdi
	callq	_usb_rcvbulkpipe
	movq	_ES2_GBUF_MSG_SIZE_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_cport_in_callback@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rsp)
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	movq	%rbx, %rcx
	callq	_usb_fill_bulk_urb
	movq	8(%r14), %rax
	movq	%rbx, (%rax,%r15,8)
	incq	%r15
	movq	_NUM_CPORT_IN_URB@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	jl	LBB0_27
LBB0_30:
	movq	_NUM_ARPC_IN_URB@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_35
## %bb.31:
	xorl	%r15d, %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_48
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	%rax, %r12
	movq	72(%r14), %rax
	movq	%r12, (%rax,%r15,8)
	movq	_ARPC_IN_SIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_49
## %bb.34:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	%rax, %rbx
	movq	64(%r14), %rsi
	movq	%r13, %rdi
	callq	_usb_rcvbulkpipe
	movq	_ARPC_IN_SIZE_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_arpc_in_callback@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r14, (%rsp)
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	movq	%rbx, %rcx
	callq	_usb_fill_bulk_urb
	movq	56(%r14), %rax
	movq	%rbx, (%rax,%r15,8)
	incq	%r15
	movq	_NUM_ARPC_IN_URB@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	jl	LBB0_32
LBB0_35:
	movq	_NUM_CPORT_OUT_URB@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_39
## %bb.36:
	xorl	%ebx, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_48
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	48(%rdx), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%rdx), %rax
	movl	$0, (%rax,%rbx,4)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_37
LBB0_39:
	xorl	%eax, %eax
	callq	_gb_debugfs_get
	leaq	L_.str.5(%rip), %rdi
	movq	_apb_log_enable_fops@GOTPCREL(%rip), %r8
	movl	$420, %esi                      ## imm = 0x1A4
	movl	%eax, %edx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_debugfs_create_file
	movl	%eax, 40(%r14)
	leaq	36(%r14), %rdi
	callq	_INIT_LIST_HEAD
	leaq	32(%r14), %rdi
	callq	_spin_lock_init
	movq	%r14, %rdi
	callq	_es2_arpc_in_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_46
## %bb.40:
	movq	%r15, %rdi
	callq	_gb_hd_add
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_43
## %bb.41:
	movq	%r14, %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	callq	_es2_cport_in_enable
	testl	%eax, %eax
	je	LBB0_50
## %bb.42:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_gb_hd_del
LBB0_43:
	movq	%r14, %rdi
	callq	_es2_arpc_in_disable
	jmp	LBB0_46
LBB0_44:
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_45:
	subl	(%rax), %ebx
LBB0_46:
	movq	%r14, %rdi
	callq	_es2_destroy
LBB0_47:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_48:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_46
LBB0_49:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_45
LBB0_50:
	xorl	%ebx, %ebx
	jmp	LBB0_47
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot retrieve CPort count: %d\n"

	.comm	_es2_driver,4,2                 ## @es2_driver
	.comm	_ES2_GBUF_MSG_SIZE_MAX,4,2      ## @ES2_GBUF_MSG_SIZE_MAX
	.comm	_ES2_CPORT_CDSI0,4,2            ## @ES2_CPORT_CDSI0
	.comm	_ES2_CPORT_CDSI1,4,2            ## @ES2_CPORT_CDSI1
L_.str.1:                               ## @.str.1
	.asciz	"Unused bulk IN endpoint found: 0x%02x\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unused bulk OUT endpoint found: 0x%02x\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unknown endpoint type found, address 0x%02x\n"

L_.str.4:                               ## @.str.4
	.asciz	"Not enough endpoints found in device, aborting!\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_NUM_CPORT_IN_URB,4,2           ## @NUM_CPORT_IN_URB
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_cport_in_callback,4,2          ## @cport_in_callback
	.comm	_NUM_ARPC_IN_URB,4,2            ## @NUM_ARPC_IN_URB
	.comm	_ARPC_IN_SIZE_MAX,4,2           ## @ARPC_IN_SIZE_MAX
	.comm	_arpc_in_callback,4,2           ## @arpc_in_callback
	.comm	_NUM_CPORT_OUT_URB,4,2          ## @NUM_CPORT_OUT_URB
L_.str.5:                               ## @.str.5
	.asciz	"apb_log_enable"

	.comm	_apb_log_enable_fops,4,2        ## @apb_log_enable_fops
	.no_dead_strip	_ap_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ap_probe
_ap_probe:                              ; @ap_probe
	.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	x23, x0
	bl	_interface_to_usbdev
	bl	_usb_get_dev
	mov	x21, x0
	bl	_apb_get_cport_count
	mov	x22, x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ES2_GBUF_MSG_SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ES2_GBUF_MSG_SIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x0, _es2_driver@GOTPAGE
Lloh4:
	ldr	x0, [x0, _es2_driver@GOTPAGEOFF]
	mov	x1, x21
	mov	x3, x22
	bl	_gb_hd_create
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_usb_put_dev
	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
	b	_PTR_ERR
LBB0_3:
	mov	x0, x21
	bl	_usb_put_dev
	str	x22, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_49
LBB0_4:
	mov	x0, x20
	bl	_hd_to_es2
	mov	x19, x0
	stp	x23, x20, [x0, #104]
	str	x21, [x0, #96]
	add	x0, x0, #92
	bl	_spin_lock_init
	ldr	w0, [x19, #88]
	bl	_INIT_KFIFO
	mov	x0, x23
	mov	x1, x19
	bl	_usb_set_intfdata
Lloh7:
	adrp	x8, _ES2_CPORT_CDSI0@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ES2_CPORT_CDSI0@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_gb_hd_cport_reserve
	mov	x22, x0
	cbnz	w0, LBB0_48
; %bb.5:
Lloh10:
	adrp	x8, _ES2_CPORT_CDSI1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ES2_CPORT_CDSI1@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_gb_hd_cport_reserve
	mov	x22, x0
	cbnz	w0, LBB0_48
; %bb.6:
	ldr	x28, [x23]
	ldr	w8, [x28, #8]
	cmp	w8, #1
	b.lt	LBB0_45
; %bb.7:
	mov	x22, #0
	mov	x23, #0
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	mov	w24, #0
	mov	w27, #0
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=1
	str	x25, [x19, #16]
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	w24, #1
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x28, #8]
	add	x22, x22, #8
	cmp	x23, x8
	b.ge	LBB0_23
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
	add	x26, x8, x22
	ldr	x25, [x26]
	mov	x0, x26
	bl	_usb_endpoint_is_bulk_in
	cbz	x0, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cbz	w24, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	cbz	w27, LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x25
	bl	_dev_warn
	b	LBB0_20
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x26
	bl	_usb_endpoint_is_bulk_out
	cbz	x0, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x25
	bl	_dev_warn
	b	LBB0_22
LBB0_18:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x25
	bl	_dev_warn
	b	LBB0_10
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=1
	str	x25, [x19, #64]
LBB0_20:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w27, #1
	b	LBB0_9
LBB0_21:                                ;   in Loop: Header=BB0_11 Depth=1
	str	x25, [x19, #80]
LBB0_22:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_10
LBB0_23:
	cbz	w24, LBB0_45
; %bb.24:
	cbz	w27, LBB0_45
; %bb.25:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_45
; %bb.26:
Lloh19:
	adrp	x24, _NUM_CPORT_IN_URB@GOTPAGE
Lloh20:
	ldr	x24, [x24, _NUM_CPORT_IN_URB@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
Lloh21:
	adrp	x28, _ES2_GBUF_MSG_SIZE_MAX@GOTPAGE
Lloh22:
	ldr	x28, [x28, _ES2_GBUF_MSG_SIZE_MAX@GOTPAGEOFF]
	b.lt	LBB0_31
; %bb.27:
	mov	x25, #0
Lloh23:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh24:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
Lloh25:
	adrp	x27, _cport_in_callback@GOTPAGE
Lloh26:
	ldr	x27, [x27, _cport_in_callback@GOTPAGEOFF]
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	mov	w0, #0
	bl	_usb_alloc_urb
	cbz	x0, LBB0_46
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	mov	x22, x0
	ldr	x8, [x19, #24]
	str	x0, [x8, x25, lsl #3]
	ldr	w0, [x28]
	ldr	w1, [x26]
	bl	_kmalloc
	cbz	x0, LBB0_46
; %bb.30:                               ;   in Loop: Header=BB0_28 Depth=1
	mov	x23, x0
	ldr	x1, [x19, #16]
	mov	x0, x21
	bl	_usb_rcvbulkpipe
	mov	x2, x0
	ldr	w4, [x28]
	ldr	w5, [x27]
	mov	x0, x22
	mov	x1, x21
	mov	x3, x23
	mov	x6, x20
	bl	_usb_fill_bulk_urb
	ldr	x8, [x19, #8]
	str	x23, [x8, x25, lsl #3]
	add	x25, x25, #1
	ldrsw	x8, [x24]
	cmp	x25, x8
	b.lt	LBB0_28
LBB0_31:
Lloh27:
	adrp	x24, _NUM_ARPC_IN_URB@GOTPAGE
Lloh28:
	ldr	x24, [x24, _NUM_ARPC_IN_URB@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_36
; %bb.32:
	mov	x25, #0
Lloh29:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh30:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
Lloh31:
	adrp	x27, _ARPC_IN_SIZE_MAX@GOTPAGE
Lloh32:
	ldr	x27, [x27, _ARPC_IN_SIZE_MAX@GOTPAGEOFF]
Lloh33:
	adrp	x28, _arpc_in_callback@GOTPAGE
Lloh34:
	ldr	x28, [x28, _arpc_in_callback@GOTPAGEOFF]
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	mov	w0, #0
	bl	_usb_alloc_urb
	cbz	x0, LBB0_46
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x22, x0
	ldr	x8, [x19, #72]
	str	x0, [x8, x25, lsl #3]
	ldr	w0, [x27]
	ldr	w1, [x26]
	bl	_kmalloc
	cbz	x0, LBB0_46
; %bb.35:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x23, x0
	ldr	x1, [x19, #64]
	mov	x0, x21
	bl	_usb_rcvbulkpipe
	mov	x2, x0
	ldr	w4, [x27]
	ldr	w5, [x28]
	mov	x0, x22
	mov	x1, x21
	mov	x3, x23
	mov	x6, x19
	bl	_usb_fill_bulk_urb
	ldr	x8, [x19, #56]
	str	x23, [x8, x25, lsl #3]
	add	x25, x25, #1
	ldrsw	x8, [x24]
	cmp	x25, x8
	b.lt	LBB0_33
LBB0_36:
Lloh35:
	adrp	x21, _NUM_CPORT_OUT_URB@GOTPAGE
Lloh36:
	ldr	x21, [x21, _NUM_CPORT_OUT_URB@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_40
; %bb.37:
	mov	x22, #0
Lloh37:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh38:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	w0, #0
	bl	_usb_alloc_urb
	cbz	x0, LBB0_46
; %bb.39:                               ;   in Loop: Header=BB0_38 Depth=1
	ldr	x8, [x19, #48]
	str	x0, [x8, x22, lsl #3]
	ldr	x8, [x19]
	str	wzr, [x8, x22, lsl #2]
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_38
LBB0_40:
	bl	_gb_debugfs_get
	mov	x2, x0
Lloh39:
	adrp	x0, l_.str.5@PAGE
Lloh40:
	add	x0, x0, l_.str.5@PAGEOFF
Lloh41:
	adrp	x4, _apb_log_enable_fops@GOTPAGE
Lloh42:
	ldr	x4, [x4, _apb_log_enable_fops@GOTPAGEOFF]
	mov	w1, #420
	mov	x3, x19
	bl	_debugfs_create_file
	str	w0, [x19, #40]
	add	x0, x19, #36
	bl	_INIT_LIST_HEAD
	add	x0, x19, #32
	bl	_spin_lock_init
	mov	x0, x19
	bl	_es2_arpc_in_enable
	mov	x22, x0
	cbnz	w0, LBB0_48
; %bb.41:
	mov	x0, x20
	bl	_gb_hd_add
	mov	x22, x0
	cbnz	w0, LBB0_44
; %bb.42:
	add	x1, x19, #8
	mov	x0, x19
	bl	_es2_cport_in_enable
	mov	x22, x0
	cbz	w0, LBB0_49
; %bb.43:
	mov	x0, x20
	bl	_gb_hd_del
LBB0_44:
	mov	x0, x19
	bl	_es2_arpc_in_disable
	b	LBB0_48
LBB0_45:
Lloh43:
	adrp	x1, l_.str.4@PAGE
Lloh44:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh45:
	adrp	x8, _ENODEV@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_47
LBB0_46:
Lloh47:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_47:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_48:
	mov	x0, x19
	bl	_es2_destroy
LBB0_49:
	mov	x0, x22
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot retrieve CPort count: %d\n"

	.comm	_es2_driver,4,2                 ; @es2_driver
	.comm	_ES2_GBUF_MSG_SIZE_MAX,4,2      ; @ES2_GBUF_MSG_SIZE_MAX
	.comm	_ES2_CPORT_CDSI0,4,2            ; @ES2_CPORT_CDSI0
	.comm	_ES2_CPORT_CDSI1,4,2            ; @ES2_CPORT_CDSI1
l_.str.1:                               ; @.str.1
	.asciz	"Unused bulk IN endpoint found: 0x%02x\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unused bulk OUT endpoint found: 0x%02x\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unknown endpoint type found, address 0x%02x\n"

l_.str.4:                               ; @.str.4
	.asciz	"Not enough endpoints found in device, aborting!\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_NUM_CPORT_IN_URB,4,2           ; @NUM_CPORT_IN_URB
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_cport_in_callback,4,2          ; @cport_in_callback
	.comm	_NUM_ARPC_IN_URB,4,2            ; @NUM_ARPC_IN_URB
	.comm	_ARPC_IN_SIZE_MAX,4,2           ; @ARPC_IN_SIZE_MAX
	.comm	_arpc_in_callback,4,2           ; @arpc_in_callback
	.comm	_NUM_CPORT_OUT_URB,4,2          ; @NUM_CPORT_OUT_URB
l_.str.5:                               ; @.str.5
	.asciz	"apb_log_enable"

	.comm	_apb_log_enable_fops,4,2        ; @apb_log_enable_fops
	.no_dead_strip	_ap_probe
.subsections_via_symbols
