	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbnet_open                    ## -- Begin function usbnet_open
	.p2align	4, 0x90
_usbnet_open:                           ## @usbnet_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	32(%rax), %r13
	movl	(%rax), %edi
	callq	_usb_autopm_get_interface
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	*%rax
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_4
LBB0_5:
	movq	16(%r13), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	*%rax
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_7
LBB0_8:
	cmpq	$0, 48(%rbx)
	je	LBB0_11
## %bb.9:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_usbnet_status_start
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_10
LBB0_11:
	movq	_EVENT_DEV_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_set_bit
	movq	%r12, %rdi
	callq	_netif_start_queue
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	40(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_RX_QLEN
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_TX_QLEN
	movq	32(%rbx), %rcx
	movq	40(%rbx), %rdx
	movl	(%rdx), %r10d
	movl	24(%rcx), %ecx
	movq	_FLAG_FRAMING_NC@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_14
## %bb.12:
	leaq	L_.str.5(%rip), %r11
	jmp	LBB0_13
LBB0_1:
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	40(%rbx), %rdx
	movq	56(%rbx), %rax
	movq	8(%rax), %rcx
	movl	(%rcx), %r9d
	movl	(%rax), %eax
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %r8d
	pushq	(%r13)
	pushq	%rax
	callq	_netif_info
	addq	$16, %rsp
	jmp	LBB0_28
LBB0_4:
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	40(%rbx), %rdx
	movq	56(%rbx), %rax
	movq	8(%rax), %rcx
	movl	(%rcx), %r9d
	movl	(%rax), %eax
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %r8d
	pushq	(%r13)
	pushq	%rax
	callq	_netif_info
	addq	$16, %rsp
	jmp	LBB0_27
LBB0_7:
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	40(%rbx), %rdx
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %r8d
	callq	_netif_dbg
	jmp	LBB0_27
LBB0_14:
	movq	_FLAG_FRAMING_GL@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_16
## %bb.15:
	leaq	L_.str.6(%rip), %r11
	jmp	LBB0_13
LBB0_10:
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	40(%rbx), %rdx
	leaq	L_.str.3(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %r8d
	callq	_netif_err
	jmp	LBB0_27
LBB0_16:
	movq	_FLAG_FRAMING_Z@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_18
## %bb.17:
	leaq	L_.str.7(%rip), %r11
LBB0_13:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, %esi
LBB0_22:
	leaq	L_.str.4(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %r8d
	movl	%eax, %r9d
	pushq	%r11
	pushq	%r10
	callq	_netif_info
	addq	$16, %rsp
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movq	_EVENT_RX_KILL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_clear_bit
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_tasklet_schedule
	movq	_FLAG_RH_HAS_MANAGE_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r13)
	je	LBB0_28
## %bb.23:
	movq	32(%r13), %rax
	testq	%rax, %rax
	je	LBB0_28
## %bb.24:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*%rax
	testl	%eax, %eax
	js	LBB0_25
## %bb.26:
	movl	%eax, %r14d
LBB0_27:
	movl	(%rbx), %edi
	callq	_usb_autopm_put_interface
LBB0_28:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	_EVENT_NO_RUNTIME_PM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	xorl	%r14d, %r14d
	jmp	LBB0_28
LBB0_18:
	movq	_FLAG_FRAMING_RN@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	movl	%r15d, %esi
	je	LBB0_20
## %bb.19:
	leaq	L_.str.8(%rip), %r11
	jmp	LBB0_21
LBB0_20:
	movq	_FLAG_FRAMING_AX@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	leaq	L_.str.10(%rip), %rcx
	leaq	L_.str.9(%rip), %r11
	cmoveq	%rcx, %r11
LBB0_21:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_ifup,4,2                       ## @ifup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"resumption fail (%d) usbnet usb-%s-%s, %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"open reset fail (%d) usbnet usb-%s-%s, %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"can't open; %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.3:                               ## @.str.3
	.asciz	"intr submit %d\n"

	.comm	_EVENT_DEV_OPEN,4,2             ## @EVENT_DEV_OPEN
L_.str.4:                               ## @.str.4
	.asciz	"open: enable queueing (rx %d, tx %d) mtu %d %s framing\n"

	.comm	_FLAG_FRAMING_NC,4,2            ## @FLAG_FRAMING_NC
L_.str.5:                               ## @.str.5
	.asciz	"NetChip"

	.comm	_FLAG_FRAMING_GL,4,2            ## @FLAG_FRAMING_GL
L_.str.6:                               ## @.str.6
	.asciz	"GeneSys"

	.comm	_FLAG_FRAMING_Z,4,2             ## @FLAG_FRAMING_Z
L_.str.7:                               ## @.str.7
	.asciz	"Zaurus"

	.comm	_FLAG_FRAMING_RN,4,2            ## @FLAG_FRAMING_RN
L_.str.8:                               ## @.str.8
	.asciz	"RNDIS"

	.comm	_FLAG_FRAMING_AX,4,2            ## @FLAG_FRAMING_AX
L_.str.9:                               ## @.str.9
	.asciz	"ASIX"

L_.str.10:                              ## @.str.10
	.asciz	"simple"

	.comm	_EVENT_RX_KILL,4,2              ## @EVENT_RX_KILL
	.comm	_FLAG_RH_HAS_MANAGE_POWER,4,2   ## @FLAG_RH_HAS_MANAGE_POWER
	.comm	_EVENT_NO_RUNTIME_PM,4,2        ## @EVENT_NO_RUNTIME_PM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbnet_open                    ; -- Begin function usbnet_open
	.p2align	2
_usbnet_open:                           ; @usbnet_open
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x25, [x0, #32]
	ldr	w0, [x0]
	bl	_usb_autopm_get_interface
	mov	x20, x0
	tbnz	w0, #31, LBB0_9
; %bb.1:
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	blr	x8
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
LBB0_3:
	ldr	x8, [x25, #16]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	blr	x8
	mov	x20, x0
	tbnz	w0, #31, LBB0_11
LBB0_5:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_7
; %bb.6:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_usbnet_status_start
	mov	x20, x0
	tbnz	w0, #31, LBB0_14
LBB0_7:
Lloh3:
	adrp	x8, _EVENT_DEV_OPEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVENT_DEV_OPEN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x21, x19, #4
	mov	x1, x21
	bl	_set_bit
	mov	x0, x22
	bl	_netif_start_queue
Lloh6:
	adrp	x8, _ifup@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	ldr	x23, [x19, #40]
	mov	x0, x19
	bl	_RX_QLEN
	mov	x24, x0
	mov	x0, x19
	bl	_TX_QLEN
	mov	x5, x0
	ldp	x9, x8, [x19, #32]
	ldr	w6, [x8]
	ldr	w8, [x9, #24]
Lloh9:
	adrp	x9, _FLAG_FRAMING_NC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FLAG_FRAMING_NC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.8:
Lloh12:
	adrp	x7, l_.str.5@PAGE
Lloh13:
	add	x7, x7, l_.str.5@PAGEOFF
	b	LBB0_20
LBB0_9:
Lloh14:
	adrp	x8, _ifup@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	x2, [x19, #40]
	ldr	x8, [x19, #56]
	ldr	x9, [x8, #8]
	ldr	w5, [x9]
	ldr	w6, [x8]
	ldr	x7, [x25]
Lloh17:
	adrp	x3, l_.str@PAGE
Lloh18:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	bl	_netif_info
	b	LBB0_25
LBB0_10:
Lloh19:
	adrp	x8, _ifup@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	x2, [x19, #40]
	ldr	x8, [x19, #56]
	ldr	x9, [x8, #8]
	ldr	w5, [x9]
	ldr	w6, [x8]
	ldr	x7, [x25]
Lloh22:
	adrp	x3, l_.str.1@PAGE
Lloh23:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	bl	_netif_info
	b	LBB0_24
LBB0_11:
Lloh24:
	adrp	x8, _ifup@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	x2, [x19, #40]
Lloh27:
	adrp	x3, l_.str.2@PAGE
Lloh28:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	bl	_netif_dbg
	b	LBB0_24
LBB0_12:
Lloh29:
	adrp	x9, _FLAG_FRAMING_GL@GOTPAGE
Lloh30:
	ldr	x9, [x9, _FLAG_FRAMING_GL@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.13:
Lloh32:
	adrp	x7, l_.str.6@PAGE
Lloh33:
	add	x7, x7, l_.str.6@PAGEOFF
	b	LBB0_20
LBB0_14:
Lloh34:
	adrp	x8, _ifup@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	ldr	x2, [x19, #40]
Lloh37:
	adrp	x3, l_.str.3@PAGE
Lloh38:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	bl	_netif_err
	b	LBB0_24
LBB0_15:
Lloh39:
	adrp	x9, _FLAG_FRAMING_Z@GOTPAGE
Lloh40:
	ldr	x9, [x9, _FLAG_FRAMING_Z@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.16:
Lloh42:
	adrp	x7, l_.str.7@PAGE
Lloh43:
	add	x7, x7, l_.str.7@PAGEOFF
	b	LBB0_20
LBB0_17:
Lloh44:
	adrp	x9, _FLAG_FRAMING_RN@GOTPAGE
Lloh45:
	ldr	x9, [x9, _FLAG_FRAMING_RN@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.18:
Lloh47:
	adrp	x7, l_.str.8@PAGE
Lloh48:
	add	x7, x7, l_.str.8@PAGEOFF
	b	LBB0_20
LBB0_19:
Lloh49:
	adrp	x9, _FLAG_FRAMING_AX@GOTPAGE
Lloh50:
	ldr	x9, [x9, _FLAG_FRAMING_AX@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
Lloh52:
	adrp	x10, l_.str.9@PAGE
Lloh53:
	add	x10, x10, l_.str.9@PAGEOFF
Lloh54:
	adrp	x11, l_.str.10@PAGE
Lloh55:
	add	x11, x11, l_.str.10@PAGEOFF
	tst	w9, w8
	csel	x7, x11, x10, eq
LBB0_20:
Lloh56:
	adrp	x3, l_.str.4@PAGE
Lloh57:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x4, x24
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_netif_info
	stp	xzr, xzr, [x19, #16]
Lloh58:
	adrp	x8, _EVENT_RX_KILL@GOTPAGE
Lloh59:
	ldr	x8, [x8, _EVENT_RX_KILL@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
	add	x0, x19, #8
	bl	_tasklet_schedule
	ldr	w8, [x25, #24]
Lloh61:
	adrp	x9, _FLAG_RH_HAS_MANAGE_POWER@GOTPAGE
Lloh62:
	ldr	x9, [x9, _FLAG_RH_HAS_MANAGE_POWER@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_25
; %bb.21:
	ldr	x8, [x25, #32]
	cbz	x8, LBB0_25
; %bb.22:
	mov	x0, x19
	mov	w1, #1
	blr	x8
	tbnz	w0, #31, LBB0_26
; %bb.23:
	mov	x20, x0
LBB0_24:
	ldr	w0, [x19]
	bl	_usb_autopm_put_interface
LBB0_25:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_26:
Lloh64:
	adrp	x8, _EVENT_NO_RUNTIME_PM@GOTPAGE
Lloh65:
	ldr	x8, [x8, _EVENT_NO_RUNTIME_PM@GOTPAGEOFF]
Lloh66:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
	mov	w20, #0
	b	LBB0_25
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.cfi_endproc
                                        ; -- End function
	.comm	_ifup,4,2                       ; @ifup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"resumption fail (%d) usbnet usb-%s-%s, %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"open reset fail (%d) usbnet usb-%s-%s, %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"can't open; %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.3:                               ; @.str.3
	.asciz	"intr submit %d\n"

	.comm	_EVENT_DEV_OPEN,4,2             ; @EVENT_DEV_OPEN
l_.str.4:                               ; @.str.4
	.asciz	"open: enable queueing (rx %d, tx %d) mtu %d %s framing\n"

	.comm	_FLAG_FRAMING_NC,4,2            ; @FLAG_FRAMING_NC
l_.str.5:                               ; @.str.5
	.asciz	"NetChip"

	.comm	_FLAG_FRAMING_GL,4,2            ; @FLAG_FRAMING_GL
l_.str.6:                               ; @.str.6
	.asciz	"GeneSys"

	.comm	_FLAG_FRAMING_Z,4,2             ; @FLAG_FRAMING_Z
l_.str.7:                               ; @.str.7
	.asciz	"Zaurus"

	.comm	_FLAG_FRAMING_RN,4,2            ; @FLAG_FRAMING_RN
l_.str.8:                               ; @.str.8
	.asciz	"RNDIS"

	.comm	_FLAG_FRAMING_AX,4,2            ; @FLAG_FRAMING_AX
l_.str.9:                               ; @.str.9
	.asciz	"ASIX"

l_.str.10:                              ; @.str.10
	.asciz	"simple"

	.comm	_EVENT_RX_KILL,4,2              ; @EVENT_RX_KILL
	.comm	_FLAG_RH_HAS_MANAGE_POWER,4,2   ; @FLAG_RH_HAS_MANAGE_POWER
	.comm	_EVENT_NO_RUNTIME_PM,4,2        ; @EVENT_NO_RUNTIME_PM
.subsections_via_symbols
