	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esd_usb2_probe
_esd_usb2_probe:                        ## @esd_usb2_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	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_interface_to_usbdev
	movl	%eax, 64(%r13)
	movq	%r13, %rdi
	addq	$60, %rdi
	callq	_init_usb_anchor
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_usb_set_intfdata
	movl	(%rbx), %esi
	movl	$72, %edi
	callq	_kmalloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_CMD_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r12)
	movl	$2, 48(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r12)
	movq	$0, 40(%r12)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_esd_usb2_send_msg
	testl	%eax, %eax
	js	LBB0_5
## %bb.8:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_esd_usb2_wait_msg
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movl	16(%r12), %eax
	movl	%eax, (%r13)
	movl	8(%r12), %edi
	callq	_le32_to_cpu
	movl	%eax, 56(%r13)
	movq	_dev_attr_firmware@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_file
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_12:
	movq	_dev_attr_hardware@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_file
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_14:
	movq	_dev_attr_nets@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_file
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_16:
	cmpl	$0, (%r13)
	jle	LBB0_19
## %bb.17:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_esd_usb2_probe_one_net
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_18
	jmp	LBB0_19
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_21
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_19:
	movq	%r12, %rdi
	callq	_kfree
	testl	%r15d, %r15d
	jne	LBB0_7
## %bb.20:
	xorl	%r15d, %r15d
	jmp	LBB0_21
LBB0_5:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r12, %rdi
	callq	_kfree
LBB0_7:
	movq	%r13, %rdi
	callq	_kfree
LBB0_21:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CMD_VERSION,4,2                ## @CMD_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sending version message failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"no version message answer\n"

	.comm	_dev_attr_firmware,4,2          ## @dev_attr_firmware
L_.str.2:                               ## @.str.2
	.asciz	"Couldn't create device file for firmware\n"

	.comm	_dev_attr_hardware,4,2          ## @dev_attr_hardware
L_.str.3:                               ## @.str.3
	.asciz	"Couldn't create device file for hardware\n"

	.comm	_dev_attr_nets,4,2              ## @dev_attr_nets
L_.str.4:                               ## @.str.4
	.asciz	"Couldn't create device file for nets\n"

	.no_dead_strip	_esd_usb2_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esd_usb2_probe
_esd_usb2_probe:                        ; @esd_usb2_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
	mov	x20, x0
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_13
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_interface_to_usbdev
	str	w0, [x19, #64]
	add	x0, x19, #60
	bl	_init_usb_anchor
	mov	x0, x20
	mov	x1, x19
	bl	_usb_set_intfdata
	ldr	w1, [x21]
	mov	w0, #72
	bl	_kmalloc
	mov	x21, x0
	cbz	x0, LBB0_14
; %bb.2:
Lloh2:
	adrp	x8, _CMD_VERSION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMD_VERSION@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	w9, #2
	stp	w9, w8, [x21, #48]
	stp	xzr, xzr, [x21, #32]
	str	xzr, [x21, #24]
	mov	x0, x19
	mov	x1, x21
	bl	_esd_usb2_send_msg
	tbnz	w0, #31, LBB0_16
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	bl	_esd_usb2_wait_msg
	mov	x22, x0
	tbnz	w0, #31, LBB0_17
; %bb.4:
	ldr	x8, [x21, #16]
	str	w8, [x19]
	ldr	w0, [x21, #8]
	bl	_le32_to_cpu
	str	w0, [x19, #56]
Lloh5:
	adrp	x1, _dev_attr_firmware@GOTPAGE
Lloh6:
	ldr	x1, [x1, _dev_attr_firmware@GOTPAGEOFF]
	mov	x0, x20
	bl	_device_create_file
	cbz	x0, LBB0_6
; %bb.5:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_6:
Lloh9:
	adrp	x1, _dev_attr_hardware@GOTPAGE
Lloh10:
	ldr	x1, [x1, _dev_attr_hardware@GOTPAGEOFF]
	mov	x0, x20
	bl	_device_create_file
	cbz	x0, LBB0_8
; %bb.7:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_8:
Lloh13:
	adrp	x1, _dev_attr_nets@GOTPAGE
Lloh14:
	ldr	x1, [x1, _dev_attr_nets@GOTPAGEOFF]
	mov	x0, x20
	bl	_device_create_file
	cbz	x0, LBB0_10
; %bb.9:
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_10:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.11:
	mov	w23, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_esd_usb2_probe_one_net
	add	w23, w23, #1
	ldr	w8, [x19]
	cmp	w23, w8
	b.lt	LBB0_12
	b	LBB0_15
LBB0_13:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_20
LBB0_14:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_15:
	mov	x0, x21
	bl	_kfree
	cbnz	w22, LBB0_19
	b	LBB0_20
LBB0_16:
	mov	x22, x0
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_18
LBB0_17:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_18:
	mov	x0, x20
	bl	_dev_err
	mov	x0, x21
	bl	_kfree
LBB0_19:
	mov	x0, x19
	bl	_kfree
LBB0_20:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CMD_VERSION,4,2                ; @CMD_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sending version message failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"no version message answer\n"

	.comm	_dev_attr_firmware,4,2          ; @dev_attr_firmware
l_.str.2:                               ; @.str.2
	.asciz	"Couldn't create device file for firmware\n"

	.comm	_dev_attr_hardware,4,2          ; @dev_attr_hardware
l_.str.3:                               ; @.str.3
	.asciz	"Couldn't create device file for hardware\n"

	.comm	_dev_attr_nets,4,2              ; @dev_attr_nets
l_.str.4:                               ; @.str.4
	.asciz	"Couldn't create device file for nets\n"

	.no_dead_strip	_esd_usb2_probe
.subsections_via_symbols
