	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function if_usb_probe
_if_usb_probe:                          ## @if_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	callq	_interface_to_usbdev
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$96, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_26
## %bb.1:
	movq	%rax, %rbx
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	leaq	92(%rax), %rdi
	movq	_if_usb_fw_timeo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_timer_setup
	leaq	88(%rbx), %rdi
	callq	_init_waitqueue_head
	movq	%r15, 80(%rbx)
	movq	(%r12), %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, (%rbx)
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %r13
	movl	20(%r15), %edi
	callq	_le16_to_cpu
	movl	16(%r15), %ecx
	movl	8(%r15), %r9d
	movl	12(%r15), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_lbs_deb_usbd
	cmpl	$0, 8(%r13)
	jle	LBB0_9
## %bb.2:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	48(%rax), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	addq	$56, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx,%r12), %edi
	callq	_le16_to_cpu
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 48(%rbx)
	movq	%r14, %rdi
	callq	_usb_endpoint_num
	movq	%rax, 72(%rbx)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_lbs_deb_usbd
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_lbs_deb_usbd
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movslq	8(%r13), %rax
	addq	$4, %r12
	cmpq	%rax, %r15
	jge	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rbx
	leaq	(%rbx,%r12), %r14
	movq	%r14, %rdi
	callq	_usb_endpoint_is_bulk_in
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_usb_endpoint_is_bulk_out
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx,%r12), %edi
	callq	_le16_to_cpu
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 56(%rbx)
	movq	%r14, %rdi
	callq	_usb_endpoint_num
	movq	%rax, 64(%rbx)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_lbs_deb_usbd
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_7
LBB0_9:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, 56(%rbx)
	je	LBB0_11
## %bb.10:
	cmpq	$0, 48(%rbx)
	je	LBB0_11
## %bb.12:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_13
## %bb.15:
	movl	(%r15), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	_MRVDRV_ETH_TX_PACKET_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_kmalloc
	movl	%eax, 24(%rbx)
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:
	movq	%rbx, %rdi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_lbs_add_card
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	jmp	LBB0_24
LBB0_11:
	leaq	L_.str.5(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_lbs_deb_usbd
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_25
LBB0_13:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_14
LBB0_16:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_14
LBB0_18:
	leaq	L_.str.8(%rip), %rsi
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_lbs_deb_usbd
	jmp	LBB0_25
LBB0_21:
	movq	%r12, 16(%rbx)
	movq	_if_usb_host_to_card@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movl	$0, (%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
	movq	$0, 24(%r12)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	4(%r14), %eax
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	callq	_usb_get_dev
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_usb_set_intfdata
	movq	(%rbx), %rdx
	movq	_fw_table@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_if_usb_prog_firmware@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_lbs_get_firmware_async
	testl	%eax, %eax
	je	LBB0_22
## %bb.23:
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_lbs_remove_card
LBB0_24:
	movq	%rbx, %rdi
	callq	_if_usb_reset_device
LBB0_25:
	movq	%rbx, %rdi
	callq	_if_usb_free
LBB0_26:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	xorl	%r14d, %r14d
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_if_usb_fw_timeo,4,2            ## @if_usb_fw_timeo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bcdUSB = 0x%X bDeviceClass = 0x%X bDeviceSubClass = 0x%X, bDeviceProtocol = 0x%X\n"

L_.str.1:                               ## @.str.1
	.asciz	"in_endpoint = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Bulk in size is %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"out_endpoint = %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Bulk out size is %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Endpoints not found\n"

L_.str.6:                               ## @.str.6
	.asciz	"Rx URB allocation failed\n"

L_.str.7:                               ## @.str.7
	.asciz	"Tx URB allocation failed\n"

	.comm	_MRVDRV_ETH_TX_PACKET_BUFFER_SIZE,4,2 ## @MRVDRV_ETH_TX_PACKET_BUFFER_SIZE
L_.str.8:                               ## @.str.8
	.asciz	"Could not allocate buffer\n"

	.comm	_if_usb_host_to_card,4,2        ## @if_usb_host_to_card
	.comm	_fw_table,4,2                   ## @fw_table
	.comm	_if_usb_prog_firmware,4,2       ## @if_usb_prog_firmware
	.comm	_if_usb_reset_olpc_card,4,2     ## @if_usb_reset_olpc_card
	.no_dead_strip	_if_usb_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function if_usb_probe
_if_usb_probe:                          ; @if_usb_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	bl	_interface_to_usbdev
	mov	x21, x0
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_25
; %bb.1:
	mov	x19, x0
	str	w20, [sp, #52]                  ; 4-byte Folded Spill
	add	x0, x0, #92
Lloh6:
	adrp	x8, _if_usb_fw_timeo@GOTPAGE
Lloh7:
	ldr	x8, [x8, _if_usb_fw_timeo@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	add	x0, x19, #88
	bl	_init_waitqueue_head
	str	x21, [x19, #80]
	ldr	x8, [x23]
	str	x8, [x19]
	str	x22, [sp, #40]                  ; 8-byte Folded Spill
	ldr	x27, [x22, #8]
	ldr	w0, [x21, #20]
	bl	_le16_to_cpu
	ldp	w9, w8, [x21, #12]
	ldr	w10, [x21, #8]
	stp	x9, x10, [sp, #16]
	stp	x0, x8, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_lbs_deb_usbd
	ldr	w8, [x27, #8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x28, #0
	mov	x26, #0
	add	x20, x19, #48
	add	x8, x19, #56
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
Lloh11:
	adrp	x24, l_.str.1@PAGE
Lloh12:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh13:
	adrp	x23, l_.str.2@PAGE
Lloh14:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x22, x28]
	bl	_le16_to_cpu
	str	x0, [x19, #48]
	mov	x0, x25
	bl	_usb_endpoint_num
	str	x0, [x19, #72]
	str	x0, [sp]
	mov	x0, x21
	mov	x1, x24
	bl	_lbs_deb_usbd
	mov	x8, x20
	mov	x1, x23
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x8]
	str	x8, [sp]
	mov	x0, x21
	bl	_lbs_deb_usbd
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x27, #8]
	add	x28, x28, #4
	cmp	x26, x8
	b.ge	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x27]
	add	x25, x22, x28
	mov	x0, x25
	bl	_usb_endpoint_is_bulk_in
	cbnz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	bl	_usb_endpoint_is_bulk_out
	cbz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x22, x28]
	bl	_le16_to_cpu
	str	x0, [x19, #56]
	mov	x0, x25
	bl	_usb_endpoint_num
	str	x0, [x19, #64]
	str	x0, [sp]
	mov	x0, x21
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_lbs_deb_usbd
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_9:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_16
; %bb.10:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_16
; %bb.11:
Lloh19:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh20:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x19, #40]
	ldr	w20, [sp, #52]                  ; 4-byte Folded Reload
	cbz	x0, LBB0_17
; %bb.12:
	ldr	w1, [x22]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x19, #32]
	cbz	x0, LBB0_18
; %bb.13:
Lloh21:
	adrp	x8, _MRVDRV_ETH_TX_PACKET_BUFFER_SIZE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MRVDRV_ETH_TX_PACKET_BUFFER_SIZE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_kmalloc
	str	w0, [x19, #24]
	cbz	w0, LBB0_19
; %bb.14:
	mov	x0, x19
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
	mov	x1, x20
	bl	_lbs_add_card
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_21
; %bb.15:
	mov	x0, x23
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_23
LBB0_16:
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_lbs_deb_usbd
	ldr	w20, [sp, #52]                  ; 4-byte Folded Reload
	b	LBB0_24
LBB0_17:
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_20
LBB0_18:
Lloh28:
	adrp	x1, l_.str.7@PAGE
Lloh29:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_20
LBB0_19:
Lloh30:
	adrp	x1, l_.str.8@PAGE
Lloh31:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_20:
	mov	x0, x21
	bl	_lbs_deb_usbd
	b	LBB0_24
LBB0_21:
	str	x23, [x19, #16]
Lloh32:
	adrp	x8, _if_usb_host_to_card@GOTPAGE
Lloh33:
	ldr	x8, [x8, _if_usb_host_to_card@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x23, #32]
	str	wzr, [x23]
	stp	xzr, xzr, [x23, #16]
	str	xzr, [x23, #8]
	ldr	w8, [x21, #4]
	str	w8, [x19, #8]
	mov	x0, x21
	bl	_usb_get_dev
	mov	x0, x20
	mov	x1, x19
	bl	_usb_set_intfdata
	ldr	x2, [x19]
Lloh35:
	adrp	x8, _fw_table@GOTPAGE
Lloh36:
	ldr	x8, [x8, _fw_table@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
Lloh38:
	adrp	x8, _if_usb_prog_firmware@GOTPAGE
Lloh39:
	ldr	x8, [x8, _if_usb_prog_firmware@GOTPAGEOFF]
Lloh40:
	ldr	w4, [x8]
	mov	x0, x23
	mov	x1, x21
	bl	_lbs_get_firmware_async
	mov	x20, x0
	cbz	w0, LBB0_25
; %bb.22:
	mov	x0, x23
	bl	_lbs_remove_card
LBB0_23:
	mov	x0, x19
	bl	_if_usb_reset_device
LBB0_24:
	mov	x0, x19
	bl	_if_usb_free
LBB0_25:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_if_usb_fw_timeo,4,2            ; @if_usb_fw_timeo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bcdUSB = 0x%X bDeviceClass = 0x%X bDeviceSubClass = 0x%X, bDeviceProtocol = 0x%X\n"

l_.str.1:                               ; @.str.1
	.asciz	"in_endpoint = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Bulk in size is %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"out_endpoint = %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Bulk out size is %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Endpoints not found\n"

l_.str.6:                               ; @.str.6
	.asciz	"Rx URB allocation failed\n"

l_.str.7:                               ; @.str.7
	.asciz	"Tx URB allocation failed\n"

	.comm	_MRVDRV_ETH_TX_PACKET_BUFFER_SIZE,4,2 ; @MRVDRV_ETH_TX_PACKET_BUFFER_SIZE
l_.str.8:                               ; @.str.8
	.asciz	"Could not allocate buffer\n"

	.comm	_if_usb_host_to_card,4,2        ; @if_usb_host_to_card
	.comm	_fw_table,4,2                   ; @fw_table
	.comm	_if_usb_prog_firmware,4,2       ; @if_usb_prog_firmware
	.comm	_if_usb_reset_olpc_card,4,2     ; @if_usb_reset_olpc_card
	.no_dead_strip	_if_usb_probe
.subsections_via_symbols
