	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generic_rndis_bind             ## -- Begin function generic_rndis_bind
	.p2align	4, 0x90
_generic_rndis_bind:                    ## @generic_rndis_bind
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	40(%rdi), %r15
	movq	_CONTROL_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_usbnet_generic_cdc_bind
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movq	_RNDIS_MSG_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movl	$40, %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%r14)
	movl	$1, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r14)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r14)
	movq	(%r15), %rax
	addq	$4, %rax
	movq	%rax, (%r15)
	addq	8(%r15), %rax
	movq	%rax, (%r12)
	movl	24(%r12), %esi
	movl	28(%r12), %edi
	movl	$1, %edx
	callq	_usb_maxpacket
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, 8(%r12)
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movl	(%r12), %ecx
	addl	%eax, %ecx
	incl	%ecx
	negl	%eax
	andl	%ecx, %eax
	movl	%eax, 12(%r12)
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r14)
	movq	_rndis_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	movq	_CONTROL_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_rndis_command
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_34
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_36
LBB0_6:
	movl	%eax, %ebx
	jmp	LBB0_35
LBB0_7:
	movq	%r12, %rdi
	callq	_netif_msg_probe
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_34
LBB0_10:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %edi
	callq	_le32_to_cpu
	movslq	%eax, %r13
	movq	(%r12), %rdx
	cmpq	%r13, %rdx
	jle	LBB0_13
## %bb.11:
	movq	(%r15), %rax
	cmpq	%r13, %rax
	jge	LBB0_25
## %bb.12:
	movq	%r13, %r8
	subq	%rax, %r8
	leaq	L_.str.3(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rcx
	callq	_dev_warn
	movq	%r13, (%r12)
	movq	%r13, %rax
	subq	(%r15), %rax
	movq	%rax, 8(%r15)
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_14
LBB0_13:
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
LBB0_14:
	movl	12(%r12), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	(%r14), %edi
	callq	_le32_to_cpu
	movl	$1, %r9d
	movl	%eax, %ecx
	shll	%cl, %r9d
	leaq	L_.str.4(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	%rdi, %r13
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	16(%r12), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%r12, %rdi
	callq	*%rax
	testq	%rax, %rax
	jne	LBB0_33
LBB0_16:
	movq	$0, -64(%rbp)
	movl	$8, -48(%rbp)
	movq	_OID_GEN_PHYSICAL_MEDIUM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rbx
	movq	%rbx, (%rsp)
	leaq	-64(%rbp), %r9
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_rndis_query
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	jne	LBB0_19
LBB0_18:
	movq	_RNDIS_PHYSICAL_MEDIUM_UNSPECIFIED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)
	leaq	-96(%rbp), %rax
	movq	%rax, -64(%rbp)
LBB0_19:
	movq	_FLAG_RNDIS_PHYM_WIRELESS@GOTPCREL(%rip), %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, (%rcx)
	je	LBB0_21
## %bb.20:
	movq	(%rax), %rcx
	movq	_RNDIS_PHYSICAL_MEDIUM_WIRELESS_LAN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_28
LBB0_21:
	movq	_FLAG_RNDIS_PHYM_NOT_WIRELESS@GOTPCREL(%rip), %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, (%rcx)
	je	LBB0_26
## %bb.22:
	movq	(%rax), %rax
	movq	_RNDIS_PHYSICAL_MEDIUM_WIRELESS_LAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.23:
	movq	%r12, %rdi
	callq	_netif_msg_probe
	testq	%rax, %rax
	je	LBB0_31
## %bb.24:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_30
LBB0_25:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r13, %rcx
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_26:
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_OID_802_3_PERMANENT_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, (%rsp)
	leaq	-88(%rbp), %r9
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	$48, %r8d
	callq	_rndis_query
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_37
## %bb.27:
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_33
LBB0_28:
	movq	%r12, %rdi
	callq	_netif_msg_probe
	testq	%rax, %rax
	je	LBB0_31
## %bb.29:
	leaq	L_.str.5(%rip), %rsi
LBB0_30:
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_31:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_32:
	subl	(%rax), %ebx
LBB0_33:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_RNDIS_MSG_HALT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	$40, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r14)
	movq	_CONTROL_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_rndis_command
LBB0_34:
	movq	32(%r12), %rdi
	xorl	%esi, %esi
	callq	_usb_set_intfdata
	movq	%r13, %rdi
	callq	_driver_of
	movq	32(%r12), %rsi
	movl	%eax, %edi
	callq	_usb_driver_release_interface
	movq	$0, 32(%r12)
LBB0_35:
	movq	%r14, %rdi
	callq	_kfree
LBB0_36:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	movl	20(%r15), %edi
	movq	-88(%rbp), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_memcpy
	movl	16(%r15), %edi
	movq	-88(%rbp), %rsi
	movl	(%rbx), %edx
	callq	_memcpy
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_RNDIS_MSG_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	$44, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r14)
	movq	_OID_GEN_CURRENT_PACKET_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movl	$4, %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%r14)
	movl	$32, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r14)
	movq	_RNDIS_DEFAULT_FILTER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r14)
	movq	_CONTROL_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_rndis_command
	movl	%eax, %r13d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_35
## %bb.38:
	leaq	L_.str.8(%rip), %rsi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r13d, %ebx
	movq	%r15, %r13
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_CONTROL_BUFFER_SIZE,4,2        ## @CONTROL_BUFFER_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RNDIS_MSG_INIT,4,2             ## @RNDIS_MSG_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dev->maxpacket can't be 0\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_rndis_netdev_ops,4,2           ## @rndis_netdev_ops
L_.str.1:                               ## @.str.1
	.asciz	"RNDIS init failed, %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"dev can't take %u byte packets (max %u)\n"

L_.str.3:                               ## @.str.3
	.asciz	"dev can't take %u byte packets (max %u), adjusting MTU to %u\n"

L_.str.4:                               ## @.str.4
	.asciz	"hard mtu %u (%u from dev), rx buflen %Zu, align %d\n"

	.comm	_OID_GEN_PHYSICAL_MEDIUM,4,2    ## @OID_GEN_PHYSICAL_MEDIUM
	.comm	_RNDIS_PHYSICAL_MEDIUM_UNSPECIFIED,8,3 ## @RNDIS_PHYSICAL_MEDIUM_UNSPECIFIED
	.comm	_FLAG_RNDIS_PHYM_WIRELESS,4,2   ## @FLAG_RNDIS_PHYM_WIRELESS
	.comm	_RNDIS_PHYSICAL_MEDIUM_WIRELESS_LAN,8,3 ## @RNDIS_PHYSICAL_MEDIUM_WIRELESS_LAN
L_.str.5:                               ## @.str.5
	.asciz	"driver requires wireless physical medium, but device is not.\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_FLAG_RNDIS_PHYM_NOT_WIRELESS,4,2 ## @FLAG_RNDIS_PHYM_NOT_WIRELESS
L_.str.6:                               ## @.str.6
	.asciz	"driver requires non-wireless physical medium, but device is wireless.\n"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_OID_802_3_PERMANENT_ADDRESS,4,2 ## @OID_802_3_PERMANENT_ADDRESS
L_.str.7:                               ## @.str.7
	.asciz	"rndis get ethaddr, %d\n"

	.comm	_RNDIS_MSG_SET,4,2              ## @RNDIS_MSG_SET
	.comm	_OID_GEN_CURRENT_PACKET_FILTER,4,2 ## @OID_GEN_CURRENT_PACKET_FILTER
	.comm	_RNDIS_DEFAULT_FILTER,8,3       ## @RNDIS_DEFAULT_FILTER
L_.str.8:                               ## @.str.8
	.asciz	"rndis set packet filter, %d\n"

	.comm	_RNDIS_MSG_HALT,4,2             ## @RNDIS_MSG_HALT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generic_rndis_bind             ; -- Begin function generic_rndis_bind
	.p2align	2
_generic_rndis_bind:                    ; @generic_rndis_bind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x27, [x0, #40]
Lloh0:
	adrp	x26, _CONTROL_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _CONTROL_BUFFER_SIZE@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x21
	bl	_usbnet_generic_cdc_bind
	tbnz	w0, #31, LBB0_6
; %bb.2:
Lloh5:
	adrp	x8, _RNDIS_MSG_INIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RNDIS_MSG_INIT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	mov	w0, #40
	bl	_cpu_to_le32
	str	x0, [x19, #24]
	mov	w0, #1
	bl	_cpu_to_le32
	str	x0, [x19, #16]
	mov	w0, #0
	bl	_cpu_to_le32
	str	x0, [x19, #8]
	ldp	x8, x9, [x27]
	add	x8, x8, #4
	str	x8, [x27]
	add	x8, x9, x8
	str	x8, [x20]
	ldp	w1, w0, [x20, #24]
	mov	w2, #1
	bl	_usb_maxpacket
	str	w0, [x20, #8]
	cbz	w0, LBB0_7
; %bb.3:
	ldr	w8, [x20]
	add	w8, w0, w8
	add	w8, w8, #1
	neg	w9, w0
	and	w0, w8, w9
	str	w0, [x20, #12]
	bl	_cpu_to_le32
	str	x0, [x19]
Lloh8:
	adrp	x8, _rndis_netdev_ops@GOTPAGE
Lloh9:
	ldr	x8, [x8, _rndis_netdev_ops@GOTPAGEOFF]
	str	x8, [x27, #24]
	ldr	w2, [x26]
	mov	x0, x20
	mov	x1, x19
	bl	_rndis_command
	mov	x23, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.4:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x23
	bl	_dev_err
	b	LBB0_36
LBB0_5:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_38
LBB0_6:
	mov	x23, x0
	b	LBB0_37
LBB0_7:
	mov	x0, x20
	bl	_netif_msg_probe
	cbz	x0, LBB0_9
; %bb.8:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
LBB0_9:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_36
LBB0_10:
	ldr	w0, [x19, #4]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x24, w0
	ldr	x25, [x20]
	cmp	x25, x24
	b.le	LBB0_13
; %bb.11:
	ldr	x8, [x27]
	cmp	x8, x24
	b.ge	LBB0_24
; %bb.12:
	sub	x4, x24, x8
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x2, x25
	mov	x3, x24
	bl	_dev_warn
	str	x24, [x20]
	ldr	x8, [x27]
	sub	x8, x24, x8
	str	x8, [x27, #8]
	mov	x25, x24
LBB0_13:
	ldr	w0, [x19]
	ldr	w28, [x20, #12]
	bl	_le32_to_cpu
	mov	w8, #1
	lsl	w8, w8, w0
	stp	x28, x8, [sp, #16]
	stp	x25, x24, [sp]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.14:
	mov	x0, x20
	blr	x8
	cbnz	x0, LBB0_35
LBB0_15:
	str	xzr, [sp, #48]
	mov	w8, #8
	str	w8, [sp, #44]
Lloh24:
	adrp	x8, _OID_GEN_PHYSICAL_MEDIUM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _OID_GEN_PHYSICAL_MEDIUM@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	add	x5, sp, #48
	add	x6, sp, #44
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	w4, #0
	bl	_rndis_query
	cbnz	w0, LBB0_17
; %bb.16:
	ldr	x8, [sp, #48]
	cbnz	x8, LBB0_18
LBB0_17:
Lloh27:
	adrp	x8, _RNDIS_PHYSICAL_MEDIUM_UNSPECIFIED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RNDIS_PHYSICAL_MEDIUM_UNSPECIFIED@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x8]
	add	x8, sp, #56
	stp	x8, x9, [sp, #48]
LBB0_18:
Lloh30:
	adrp	x9, _FLAG_RNDIS_PHYM_WIRELESS@GOTPAGE
Lloh31:
	ldr	x9, [x9, _FLAG_RNDIS_PHYM_WIRELESS@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x9]
Lloh33:
	adrp	x9, _RNDIS_PHYSICAL_MEDIUM_WIRELESS_LAN@GOTPAGE
Lloh34:
	ldr	x9, [x9, _RNDIS_PHYSICAL_MEDIUM_WIRELESS_LAN@GOTPAGEOFF]
	tst	w10, w22
	b.eq	LBB0_20
; %bb.19:
	ldr	x10, [x8]
	ldr	x11, [x9]
	cmp	x10, x11
	b.ne	LBB0_27
LBB0_20:
Lloh35:
	adrp	x10, _FLAG_RNDIS_PHYM_NOT_WIRELESS@GOTPAGE
Lloh36:
	ldr	x10, [x10, _FLAG_RNDIS_PHYM_NOT_WIRELESS@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	tst	w10, w22
	b.eq	LBB0_25
; %bb.21:
	ldr	x8, [x8]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.22:
	mov	x0, x20
	bl	_netif_msg_probe
	cbz	x0, LBB0_30
; %bb.23:
Lloh38:
	adrp	x1, l_.str.6@PAGE
Lloh39:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_29
LBB0_24:
	str	x24, [sp]
Lloh40:
	adrp	x1, l_.str.2@PAGE
Lloh41:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x25
	bl	_dev_err
Lloh42:
	adrp	x8, _EINVAL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_31
LBB0_25:
Lloh44:
	adrp	x22, _ETH_ALEN@GOTPAGE
Lloh45:
	ldr	x22, [x22, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x22]
	str	w8, [sp, #44]
Lloh46:
	adrp	x8, _OID_802_3_PERMANENT_ADDRESS@GOTPAGE
Lloh47:
	ldr	x8, [x8, _OID_802_3_PERMANENT_ADDRESS@GOTPAGEOFF]
Lloh48:
	ldr	w3, [x8]
	add	x5, sp, #32
	add	x6, sp, #44
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	w4, #48
	bl	_rndis_query
	mov	x23, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_32
; %bb.26:
Lloh49:
	adrp	x1, l_.str.7@PAGE
Lloh50:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_34
LBB0_27:
	mov	x0, x20
	bl	_netif_msg_probe
	cbz	x0, LBB0_30
; %bb.28:
Lloh51:
	adrp	x1, l_.str.5@PAGE
Lloh52:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_29:
	mov	x0, x21
	bl	_dev_dbg
LBB0_30:
Lloh53:
	adrp	x8, _ENODEV@GOTPAGE
Lloh54:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_31:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_35
LBB0_32:
	ldr	w0, [x27, #20]
	ldr	x1, [sp, #32]
	ldr	w2, [x22]
	bl	_memcpy
	ldr	w0, [x27, #16]
	ldr	x1, [sp, #32]
	ldr	w2, [x22]
	bl	_memcpy
	mov	x0, x19
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh55:
	adrp	x8, _RNDIS_MSG_SET@GOTPAGE
Lloh56:
	ldr	x8, [x8, _RNDIS_MSG_SET@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	w0, #44
	bl	_cpu_to_le32
	str	x0, [x19]
Lloh58:
	adrp	x8, _OID_GEN_CURRENT_PACKET_FILTER@GOTPAGE
Lloh59:
	ldr	x8, [x8, _OID_GEN_CURRENT_PACKET_FILTER@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	mov	w0, #4
	bl	_cpu_to_le32
	str	x0, [x19, #24]
	mov	w0, #32
	bl	_cpu_to_le32
	str	x0, [x19, #16]
Lloh61:
	adrp	x8, _RNDIS_DEFAULT_FILTER@GOTPAGE
Lloh62:
	ldr	x8, [x8, _RNDIS_DEFAULT_FILTER@GOTPAGEOFF]
Lloh63:
	ldr	x8, [x8]
	str	x8, [x19, #40]
	ldr	w2, [x26]
	mov	x0, x20
	mov	x1, x19
	bl	_rndis_command
	mov	x23, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_39
; %bb.33:
Lloh64:
	adrp	x1, l_.str.8@PAGE
Lloh65:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_34:
	mov	x0, x21
	mov	x2, x23
	bl	_dev_err
LBB0_35:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh66:
	adrp	x8, _RNDIS_MSG_HALT@GOTPAGE
Lloh67:
	ldr	x8, [x8, _RNDIS_MSG_HALT@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	w0, #40
	bl	_cpu_to_le32
	str	x0, [x19]
	ldr	w2, [x26]
	mov	x0, x20
	mov	x1, x19
	bl	_rndis_command
LBB0_36:
	ldr	x0, [x20, #32]
	mov	x1, #0
	bl	_usb_set_intfdata
	mov	x0, x21
	bl	_driver_of
	ldr	x1, [x20, #32]
	bl	_usb_driver_release_interface
	str	xzr, [x20, #32]
LBB0_37:
	mov	x0, x19
	bl	_kfree
LBB0_38:
	mov	x0, x23
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_39:
	mov	x0, x19
	bl	_kfree
	mov	w23, #0
	b	LBB0_38
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.cfi_endproc
                                        ; -- End function
	.comm	_CONTROL_BUFFER_SIZE,4,2        ; @CONTROL_BUFFER_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RNDIS_MSG_INIT,4,2             ; @RNDIS_MSG_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dev->maxpacket can't be 0\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_rndis_netdev_ops,4,2           ; @rndis_netdev_ops
l_.str.1:                               ; @.str.1
	.asciz	"RNDIS init failed, %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"dev can't take %u byte packets (max %u)\n"

l_.str.3:                               ; @.str.3
	.asciz	"dev can't take %u byte packets (max %u), adjusting MTU to %u\n"

l_.str.4:                               ; @.str.4
	.asciz	"hard mtu %u (%u from dev), rx buflen %Zu, align %d\n"

	.comm	_OID_GEN_PHYSICAL_MEDIUM,4,2    ; @OID_GEN_PHYSICAL_MEDIUM
	.comm	_RNDIS_PHYSICAL_MEDIUM_UNSPECIFIED,8,3 ; @RNDIS_PHYSICAL_MEDIUM_UNSPECIFIED
	.comm	_FLAG_RNDIS_PHYM_WIRELESS,4,2   ; @FLAG_RNDIS_PHYM_WIRELESS
	.comm	_RNDIS_PHYSICAL_MEDIUM_WIRELESS_LAN,8,3 ; @RNDIS_PHYSICAL_MEDIUM_WIRELESS_LAN
l_.str.5:                               ; @.str.5
	.asciz	"driver requires wireless physical medium, but device is not.\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_FLAG_RNDIS_PHYM_NOT_WIRELESS,4,2 ; @FLAG_RNDIS_PHYM_NOT_WIRELESS
l_.str.6:                               ; @.str.6
	.asciz	"driver requires non-wireless physical medium, but device is wireless.\n"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_OID_802_3_PERMANENT_ADDRESS,4,2 ; @OID_802_3_PERMANENT_ADDRESS
l_.str.7:                               ; @.str.7
	.asciz	"rndis get ethaddr, %d\n"

	.comm	_RNDIS_MSG_SET,4,2              ; @RNDIS_MSG_SET
	.comm	_OID_GEN_CURRENT_PACKET_FILTER,4,2 ; @OID_GEN_CURRENT_PACKET_FILTER
	.comm	_RNDIS_DEFAULT_FILTER,8,3       ; @RNDIS_DEFAULT_FILTER
l_.str.8:                               ; @.str.8
	.asciz	"rndis set packet filter, %d\n"

	.comm	_RNDIS_MSG_HALT,4,2             ; @RNDIS_MSG_HALT
.subsections_via_symbols
