	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8150_probe
_rtl8150_probe:                         ## @rtl8150_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_interface_to_usbdev
	movq	%rax, %r12
	movl	$32, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_INTBUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movl	%eax, 4(%rbx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	28(%rbx), %rdi
	movq	_rx_fixup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_tasklet_init
	movq	%rbx, %rdi
	addq	$24, %rdi
	callq	_spin_lock_init
	movq	%r12, 16(%rbx)
	movq	%r15, 8(%rbx)
	movq	_rtl8150_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	movq	_RTL8150_TX_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movl	$100, (%rbx)
	movq	%rbx, %rdi
	callq	_alloc_all_urbs
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	callq	_rtl8150_reset
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	callq	_fill_skb_pool
	movq	%rbx, %rdi
	callq	_set_ethernet_addr
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_usb_set_intfdata
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r15, %rdi
	callq	_register_netdev
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_usb_set_intfdata
	movq	%rbx, %rdi
	callq	_free_skb_pool
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_3:
	movq	%r15, %rdi
	callq	_free_netdev
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_10:
	movq	%rbx, %rdi
	callq	_free_all_urbs
LBB0_11:
	movl	4(%rbx), %edi
	callq	_kfree
	movq	%r15, %rdi
	callq	_free_netdev
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_12:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	(%r15), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_INTBUFSIZE,4,2                 ## @INTBUFSIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_rx_fixup,4,2                   ## @rx_fixup
	.comm	_rtl8150_netdev_ops,4,2         ## @rtl8150_netdev_ops
	.comm	_RTL8150_TX_TIMEOUT,4,2         ## @RTL8150_TX_TIMEOUT
	.comm	_ops,4,2                        ## @ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory\n"

L_.str.1:                               ## @.str.1
	.asciz	"couldn't reset the device\n"

L_.str.2:                               ## @.str.2
	.asciz	"couldn't register the device\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s: rtl8150 is detected\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_rtl8150_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8150_probe
_rtl8150_probe:                         ; @rtl8150_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x0
	bl	_interface_to_usbdev
	mov	x22, x0
	mov	w0, #32
	bl	_alloc_etherdev
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _INTBUFSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTBUFSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kmalloc
	str	w0, [x20, #4]
	cbz	w0, LBB0_6
; %bb.2:
	add	x0, x20, #28
Lloh6:
	adrp	x8, _rx_fixup@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rx_fixup@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_tasklet_init
	add	x0, x20, #24
	bl	_spin_lock_init
	stp	x19, x22, [x20, #8]
Lloh9:
	adrp	x8, _rtl8150_netdev_ops@GOTPAGE
Lloh10:
	ldr	x8, [x8, _rtl8150_netdev_ops@GOTPAGEOFF]
	str	x8, [x19, #24]
Lloh11:
	adrp	x8, _RTL8150_TX_TIMEOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RTL8150_TX_TIMEOUT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh14:
	adrp	x8, _ops@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ops@GOTPAGEOFF]
	str	x8, [x19, #8]
	mov	w8, #100
	str	w8, [x20]
	mov	x0, x20
	bl	_alloc_all_urbs
	cbz	w0, LBB0_8
; %bb.3:
	mov	x0, x20
	bl	_rtl8150_reset
	cbz	w0, LBB0_9
; %bb.4:
	mov	x0, x20
	bl	_fill_skb_pool
	mov	x0, x20
	bl	_set_ethernet_addr
	mov	x0, x21
	mov	x1, x20
	bl	_usb_set_intfdata
	mov	x0, x19
	mov	x1, x21
	bl	_SET_NETDEV_DEV
	mov	x0, x19
	bl	_register_netdev
	cbz	x0, LBB0_14
; %bb.5:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	mov	x0, x21
	mov	x1, #0
	bl	_usb_set_intfdata
	mov	x0, x20
	bl	_free_skb_pool
	b	LBB0_10
LBB0_6:
	mov	x0, x19
	bl	_free_netdev
LBB0_7:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_11
LBB0_9:
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
LBB0_10:
	mov	x0, x20
	bl	_free_all_urbs
LBB0_11:
	ldr	w0, [x20, #4]
	bl	_kfree
	mov	x0, x19
	bl	_free_netdev
Lloh24:
	adrp	x8, _EIO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
	ldr	w2, [x19]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_info
	mov	w0, #0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_INTBUFSIZE,4,2                 ; @INTBUFSIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_rx_fixup,4,2                   ; @rx_fixup
	.comm	_rtl8150_netdev_ops,4,2         ; @rtl8150_netdev_ops
	.comm	_RTL8150_TX_TIMEOUT,4,2         ; @RTL8150_TX_TIMEOUT
	.comm	_ops,4,2                        ; @ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory\n"

l_.str.1:                               ; @.str.1
	.asciz	"couldn't reset the device\n"

l_.str.2:                               ; @.str.2
	.asciz	"couldn't register the device\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s: rtl8150 is detected\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_rtl8150_probe
.subsections_via_symbols
