	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8150_open
_rtl8150_open:                          ## @rtl8150_open
	.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
	callq	_netdev_priv
	movq	%rax, %rbx
	cmpq	$0, 24(%rax)
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_pull_skb
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	_IDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %ecx
	movq	%rbx, %rdi
	movl	$6, %edx
	callq	_set_registers
	movl	(%rbx), %r15d
	movl	20(%rbx), %r12d
	movl	%r12d, %edi
	movl	$1, %esi
	callq	_usb_rcvbulkpipe
	movq	24(%rbx), %rcx
	movl	(%rcx), %ecx
	movq	_RTL8150_MTU@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	_read_bulk_callback@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	subq	$8, %rsp
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	pushq	%rbx
	callq	_usb_fill_bulk_urb
	addq	$16, %rsp
	movl	(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movl	%eax, %r15d
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	jne	LBB0_6
## %bb.5:
	movl	4(%rbx), %edi
	callq	_netif_device_detach
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dev_warn
	jmp	LBB0_12
LBB0_7:
	movl	8(%rbx), %r15d
	movl	20(%rbx), %r12d
	movl	%r12d, %edi
	movl	$3, %esi
	callq	_usb_rcvintpipe
	movl	12(%rbx), %r10d
	movl	16(%rbx), %ecx
	movq	_INTBUFSIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	_intr_callback@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	pushq	%r10
	pushq	%rbx
	callq	_usb_fill_int_urb
	addq	$16, %rsp
	movl	8(%rbx), %edi
	movl	(%r13), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movl	%eax, %r15d
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	jne	LBB0_10
## %bb.9:
	movl	4(%rbx), %edi
	callq	_netif_device_detach
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dev_warn
	movl	(%rbx), %edi
	callq	_usb_kill_urb
	jmp	LBB0_12
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_11:
	movq	%rbx, %rdi
	callq	_enable_net_traffic
	movq	%r14, %rdi
	callq	_set_carrier
	movq	%r14, %rdi
	callq	_netif_start_queue
	xorl	%r15d, %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IDR,4,2                        ## @IDR
	.comm	_RTL8150_MTU,4,2                ## @RTL8150_MTU
	.comm	_read_bulk_callback,4,2         ## @read_bulk_callback
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx_urb submit failed: %d\n"

	.comm	_INTBUFSIZE,4,2                 ## @INTBUFSIZE
	.comm	_intr_callback,4,2              ## @intr_callback
L_.str.1:                               ## @.str.1
	.asciz	"intr_urb submit failed: %d\n"

	.no_dead_strip	_rtl8150_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8150_open
_rtl8150_open:                          ; @rtl8150_open
	.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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0, #24]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_pull_skb
	str	x0, [x20, #24]
	cbz	x0, LBB0_10
LBB0_2:
Lloh0:
	adrp	x8, _IDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w3, [x19, #4]
	mov	x0, x20
	mov	w2, #6
	bl	_set_registers
	ldr	w21, [x20]
	ldr	w22, [x20, #20]
	mov	x0, x22
	mov	w1, #1
	bl	_usb_rcvbulkpipe
	mov	x2, x0
	ldr	x8, [x20, #24]
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _RTL8150_MTU@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTL8150_MTU@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
Lloh6:
	adrp	x8, _read_bulk_callback@GOTPAGE
Lloh7:
	ldr	x8, [x8, _read_bulk_callback@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	x6, x20
	bl	_usb_fill_bulk_urb
	ldr	w0, [x20]
Lloh9:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_usb_submit_urb
	cbz	w0, LBB0_6
; %bb.3:
	mov	x21, x0
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x20, #4]
	bl	_netif_device_detach
LBB0_5:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_warn
	b	LBB0_12
LBB0_6:
	ldr	w21, [x20, #8]
	ldr	w22, [x20, #20]
	mov	x0, x22
	mov	w1, #3
	bl	_usb_rcvintpipe
	mov	x2, x0
Lloh16:
	adrp	x8, _INTBUFSIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _INTBUFSIZE@GOTPAGEOFF]
Lloh18:
	ldr	w4, [x8]
Lloh19:
	adrp	x8, _intr_callback@GOTPAGE
Lloh20:
	ldr	x8, [x8, _intr_callback@GOTPAGEOFF]
Lloh21:
	ldr	w5, [x8]
	ldp	w7, w3, [x20, #12]
	mov	x0, x21
	mov	x1, x22
	mov	x6, x20
	bl	_usb_fill_int_urb
	ldr	w0, [x20, #8]
	ldr	w1, [x23]
	bl	_usb_submit_urb
	mov	x21, x0
	cbz	w0, LBB0_11
; %bb.7:
Lloh22:
	adrp	x8, _ENODEV@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmn	w21, w8
	b.ne	LBB0_9
; %bb.8:
	ldr	w0, [x20, #4]
	bl	_netif_device_detach
LBB0_9:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_warn
	ldr	w0, [x20]
	bl	_usb_kill_urb
	b	LBB0_12
LBB0_10:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_11:
	mov	x0, x20
	bl	_enable_net_traffic
	mov	x0, x19
	bl	_set_carrier
	mov	x0, x19
	bl	_netif_start_queue
LBB0_12:
	mov	x0, x21
	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	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IDR,4,2                        ; @IDR
	.comm	_RTL8150_MTU,4,2                ; @RTL8150_MTU
	.comm	_read_bulk_callback,4,2         ; @read_bulk_callback
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx_urb submit failed: %d\n"

	.comm	_INTBUFSIZE,4,2                 ; @INTBUFSIZE
	.comm	_intr_callback,4,2              ; @intr_callback
l_.str.1:                               ; @.str.1
	.asciz	"intr_urb submit failed: %d\n"

	.no_dead_strip	_rtl8150_open
.subsections_via_symbols
