	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dln2_probe
_dln2_probe:                            ## @dln2_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r15
	cmpq	$0, 8(%r15)
	jne	LBB0_2
## %bb.1:
	cmpl	$1, 16(%r15)
	jg	LBB0_4
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_21:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rax
	movl	(%rax), %ecx
	movl	%ecx, 48(%rbx)
	movl	4(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	%r14, %rdi
	callq	_interface_to_usbdev
	movl	%eax, %edi
	callq	_usb_get_dev
	movl	%eax, 40(%rbx)
	movq	%r14, 32(%rbx)
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_usb_set_intfdata
	leaq	24(%rbx), %rdi
	callq	_init_waitqueue_head
	movq	_DLN2_HANDLES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_12
## %bb.7:
	xorl	%r12d, %r12d
	movq	_DLN2_MAX_RX_SLOTS@GOTPCREL(%rip), %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	incq	%r12
	movq	_DLN2_HANDLES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	jge	LBB0_12
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	16(%rbx), %rax
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	shlq	$4, %r12
	leaq	(%rax,%r12), %rdi
	addq	$12, %rdi
	callq	_init_waitqueue_head
	movq	16(%rbx), %rax
	leaq	(%rax,%r12), %rdi
	addq	$8, %rdi
	callq	_spin_lock_init
	cmpl	$0, (%r14)
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%rbx), %rax
	movq	(%rax,%r12), %rdi
	addq	%r15, %rdi
	callq	_init_completion
	incq	%r13
	movslq	(%r14), %rax
	addq	$4, %r15
	cmpq	%rax, %r13
	jl	LBB0_10
	jmp	LBB0_11
LBB0_12:
	leaq	8(%rbx), %rdi
	callq	_spin_lock_init
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_spin_lock_init
	movq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_dln2_setup_rx_urbs
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_20
## %bb.13:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dln2_start_rx_urbs
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.14:
	movq	%rbx, %rdi
	callq	_dln2_hw_init
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	movq	_dln2_devs@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_ARRAY_SIZE
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_mfd_add_hotplug_devices
	testl	%eax, %eax
	je	LBB0_22
## %bb.17:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_18
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_15:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_18:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_19:
	movq	%rbx, %rdi
	callq	_dln2_stop_rx_urbs
LBB0_20:
	movq	%rbx, %rdi
	callq	_dln2_free
	jmp	LBB0_21
LBB0_22:
	xorl	%r15d, %r15d
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DLN2_HANDLES,4,2               ## @DLN2_HANDLES
	.comm	_DLN2_MAX_RX_SLOTS,4,2          ## @DLN2_MAX_RX_SLOTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to initialize hardware\n"

	.comm	_dln2_devs,4,2                  ## @dln2_devs
L_.str.1:                               ## @.str.1
	.asciz	"failed to add mfd devices to core\n"

	.no_dead_strip	_dln2_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dln2_probe
_dln2_probe:                            ; @dln2_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
	ldr	x21, [x0, #8]
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x21, #16]
	cmp	w8, #1
	b.gt	LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	mov	x0, x21
	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
LBB0_5:
	mov	x19, x0
Lloh2:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_17
; %bb.6:
	mov	x20, x0
	ldr	x8, [x21]
	ldr	d0, [x8]
	rev64.2s	v0, v0
	stur	d0, [x0, #44]
	mov	x0, x19
	bl	_interface_to_usbdev
	bl	_usb_get_dev
	str	w0, [x20, #40]
	str	x19, [x20, #32]
	mov	x0, x19
	mov	x1, x20
	bl	_usb_set_intfdata
	add	x0, x20, #24
	bl	_init_waitqueue_head
Lloh4:
	adrp	x23, _DLN2_HANDLES@GOTPAGE
Lloh5:
	ldr	x23, [x23, _DLN2_HANDLES@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.7:
	mov	x24, #0
Lloh6:
	adrp	x25, _DLN2_MAX_RX_SLOTS@GOTPAGE
Lloh7:
	ldr	x25, [x25, _DLN2_MAX_RX_SLOTS@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.ge	LBB0_12
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x8, [x20, #16]
	lsl	x26, x24, #4
	add	x8, x8, x26
	add	x0, x8, #12
	bl	_init_waitqueue_head
	ldr	x8, [x20, #16]
	add	x8, x8, x26
	add	x0, x8, #8
	bl	_spin_lock_init
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x27, #0
	mov	x28, #0
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x26]
	add	x0, x8, x27
	bl	_init_completion
	add	x28, x28, #1
	ldrsw	x8, [x25]
	add	x27, x27, #4
	cmp	x28, x8
	b.lt	LBB0_11
	b	LBB0_8
LBB0_12:
	add	x0, x20, #8
	bl	_spin_lock_init
	add	x0, x20, #4
	bl	_spin_lock_init
	mov	x0, x20
	bl	_INIT_LIST_HEAD
	mov	x0, x20
	mov	x1, x21
	bl	_dln2_setup_rx_urbs
	mov	x21, x0
	cbnz	w0, LBB0_21
; %bb.13:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_dln2_start_rx_urbs
	mov	x21, x0
	cbnz	w0, LBB0_20
; %bb.14:
	mov	x0, x20
	bl	_dln2_hw_init
	tbnz	w0, #31, LBB0_18
; %bb.15:
Lloh8:
	adrp	x8, _dln2_devs@GOTPAGE
Lloh9:
	ldr	x8, [x8, _dln2_devs@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_mfd_add_hotplug_devices
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.16:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_17:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
LBB0_18:
	mov	x21, x0
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
LBB0_19:
	mov	x0, x19
	bl	_dev_err
LBB0_20:
	mov	x0, x20
	bl	_dln2_stop_rx_urbs
LBB0_21:
	mov	x0, x20
	bl	_dln2_free
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DLN2_HANDLES,4,2               ; @DLN2_HANDLES
	.comm	_DLN2_MAX_RX_SLOTS,4,2          ; @DLN2_MAX_RX_SLOTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to initialize hardware\n"

	.comm	_dln2_devs,4,2                  ; @dln2_devs
l_.str.1:                               ; @.str.1
	.asciz	"failed to add mfd devices to core\n"

	.no_dead_strip	_dln2_probe
.subsections_via_symbols
