	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alauda_probe
_alauda_probe:                          ## @alauda_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$96, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_kref_init
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_usb_set_intfdata
	movq	%r14, %rdi
	callq	_interface_to_usbdev
	movl	%eax, %edi
	callq	_usb_get_dev
	movl	%eax, 12(%r12)
	movq	%r14, 40(%r12)
	movq	8(%r14), %r15
	cmpl	$0, 8(%r15)
	jle	LBB0_13
## %bb.3:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %r14
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movslq	8(%r15), %rax
	addq	$4, %r12
	cmpq	%rax, %r13
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rbx
	addq	%r12, %rbx
	movq	%rbx, %rdi
	callq	_usb_endpoint_is_bulk_in
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_usb_endpoint_is_bulk_out
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%r13, %r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmovneq	%rbx, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmoveq	%rbx, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_13
## %bb.10:
	testq	%r14, %r14
	je	LBB0_13
## %bb.11:
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.12:
	movl	12(%r12), %r13d
	callq	_usb_endpoint_num
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_usb_sndbulkpipe
	movq	%rax, 32(%r12)
	movl	12(%r12), %r13d
	movq	%r14, %rdi
	callq	_usb_endpoint_num
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_usb_rcvbulkpipe
	movl	%eax, 24(%r12)
	movl	12(%r12), %r14d
	movq	%rbx, %rdi
	callq	_usb_endpoint_num
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_usb_sndbulkpipe
	movq	%rax, 16(%r12)
	leaq	48(%r12), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$48, %edx
	callq	_memcpy
	leaq	8(%r12), %rdi
	callq	_mutex_init
	movq	%r12, %rdi
	addq	$56, %rdi
	callq	_mutex_init
	movq	_ALAUDA_PORT_XD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_ALAUDA_PORT_SM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r12)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	movq	%r12, %rdi
	callq	_alauda_check_media
	movq	%rbx, %rdi
	callq	_alauda_check_media
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_13:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_alauda_delete@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_kref_put
	jmp	LBB0_14
LBB0_1:
	negl	%ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ALAUDA_PORT_XD,4,2             ## @ALAUDA_PORT_XD
	.comm	_ALAUDA_PORT_SM,4,2             ## @ALAUDA_PORT_SM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"alauda probed\n"

	.comm	_alauda_delete,4,2              ## @alauda_delete
	.no_dead_strip	_alauda_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alauda_probe
_alauda_probe:                          ; @alauda_probe
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #96
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x0
	bl	_kref_init
	mov	x0, x20
	mov	x1, x19
	bl	_usb_set_intfdata
	mov	x0, x20
	bl	_interface_to_usbdev
	bl	_usb_get_dev
	str	w0, [x19, #12]
	str	x20, [x19, #40]
	ldr	x25, [x20, #8]
	ldr	w8, [x25, #8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.2:
	mov	x26, #0
	mov	x27, #0
	mov	x23, #0
	mov	x21, #0
	mov	x22, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_usb_endpoint_is_bulk_out
	cmp	x27, #0
	csel	x8, x21, x24, eq
	csel	x9, x24, x23, eq
	cmp	x0, #0
	csel	x21, x21, x8, eq
	csel	x23, x23, x9, eq
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x25, #8]
	add	x26, x26, #4
	cmp	x27, x8
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	add	x24, x8, x26
	mov	x0, x24
	bl	_usb_endpoint_is_bulk_in
	cbz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x24
	b	LBB0_4
LBB0_7:
	cbz	x23, LBB0_11
; %bb.8:
	cbz	x22, LBB0_11
; %bb.9:
	cbz	x21, LBB0_11
; %bb.10:
	ldr	w24, [x19, #12]
	mov	x0, x23
	bl	_usb_endpoint_num
	mov	x1, x0
	mov	x0, x24
	bl	_usb_sndbulkpipe
	str	x0, [x19, #32]
	ldr	w23, [x19, #12]
	mov	x0, x22
	bl	_usb_endpoint_num
	mov	x1, x0
	mov	x0, x23
	bl	_usb_rcvbulkpipe
	str	w0, [x19, #24]
	ldr	w22, [x19, #12]
	mov	x0, x21
	bl	_usb_endpoint_num
	mov	x1, x0
	mov	x0, x22
	bl	_usb_sndbulkpipe
	str	x0, [x19, #16]
	add	x21, x19, #48
	mov	x0, x21
	mov	x1, x19
	mov	w2, #48
	bl	_memcpy
	add	x0, x19, #8
	bl	_mutex_init
	add	x0, x19, #56
	bl	_mutex_init
Lloh6:
	adrp	x8, _ALAUDA_PORT_XD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ALAUDA_PORT_XD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh9:
	adrp	x8, _ALAUDA_PORT_SM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ALAUDA_PORT_SM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #52]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	x0, x19
	bl	_alauda_check_media
	mov	x0, x21
	bl	_alauda_check_media
	mov	w20, #0
	b	LBB0_13
LBB0_11:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
Lloh17:
	adrp	x8, _alauda_delete@GOTPAGE
Lloh18:
	ldr	x8, [x8, _alauda_delete@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kref_put
	b	LBB0_13
LBB0_12:
	neg	w20, w21
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ALAUDA_PORT_XD,4,2             ; @ALAUDA_PORT_XD
	.comm	_ALAUDA_PORT_SM,4,2             ; @ALAUDA_PORT_SM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"alauda probed\n"

	.comm	_alauda_delete,4,2              ; @alauda_delete
	.no_dead_strip	_alauda_probe
.subsections_via_symbols
