	.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, %r15
	movq	%rdi, %r12
	movq	16(%rdi), %r13
	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	%r15, %rsi
	callq	_usbnet_generic_cdc_bind
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movq	_RNDIS_MSG_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 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	%ebx, %ebx
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r14)
	movl	(%r13), %eax
	addl	$4, %eax
	movl	%eax, (%r13)
	addl	4(%r13), %eax
	movl	%eax, (%r12)
	movl	32(%r12), %esi
	movl	36(%r12), %edi
	movl	$1, %edx
	callq	_usb_maxpacket
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, 4(%r12)
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movl	(%r12), %ecx
	addl	%eax, %ecx
	incl	%ecx
	negl	%eax
	andl	%ecx, %eax
	movl	%eax, 8(%r12)
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r14)
	movq	_rndis_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r13)
	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_8
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_29
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_31
LBB0_6:
	movl	%eax, %ebx
	jmp	LBB0_30
LBB0_7:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r12), %rdx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	callq	_netif_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_29
LBB0_8:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %edi
	callq	_le32_to_cpu
	movslq	%eax, %r15
	movslq	(%r12), %rdx
	cmpl	%edx, %r15d
	jge	LBB0_11
## %bb.9:
	movslq	(%r13), %rcx
	cmpl	%ecx, %eax
	jle	LBB0_22
## %bb.10:
	movq	%r15, %r8
	subq	%rcx, %r8
	leaq	L_.str.3(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_dev_warn
	movl	%r15d, (%r12)
	movl	(%r13), %eax
	movl	%r15d, %ecx
	subl	%eax, %ecx
	movl	%ecx, 4(%r13)
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
LBB0_11:
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
LBB0_12:
	movl	8(%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	%r15, %rcx
	movq	%rdi, %r15
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	callq	_dev_dbg
	movq	24(%r12), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r12, %rdi
	callq	*%rax
	testq	%rax, %rax
	jne	LBB0_28
LBB0_14:
	movq	$0, -64(%rbp)
	movl	$8, -48(%rbp)
	movq	_RNDIS_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	%r15, %rsi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_rndis_query
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	jne	LBB0_17
LBB0_16:
	movq	_RNDIS_PHYSICAL_MEDIUM_UNSPECIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, -96(%rbp)
	leaq	-96(%rbp), %rdi
	movq	%rdi, -64(%rbp)
LBB0_17:
	movq	_FLAG_RNDIS_PHYM_WIRELESS@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_19
## %bb.18:
	callq	_le32_to_cpup
	movq	_RNDIS_PHYSICAL_MEDIUM_WIRELESS_LAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
LBB0_19:
	movq	_FLAG_RNDIS_PHYM_NOT_WIRELESS@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_23
## %bb.20:
	movq	-64(%rbp), %rdi
	callq	_le32_to_cpup
	movq	_RNDIS_PHYSICAL_MEDIUM_WIRELESS_LAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.21:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r12), %rdx
	leaq	L_.str.6(%rip), %rcx
	jmp	LBB0_26
LBB0_22:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r15, %rcx
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_23:
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_RNDIS_OID_802_3_PERMANENT_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, (%rsp)
	leaq	-88(%rbp), %r9
	movq	%r12, %rdi
	movq	%r15, %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_32
## %bb.24:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_28
LBB0_25:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r12), %rdx
	leaq	L_.str.5(%rip), %rcx
LBB0_26:
	movq	%r12, %rdi
	callq	_netif_dbg
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_27:
	subl	(%rax), %ebx
LBB0_28:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_RNDIS_MSG_HALT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 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_29:
	movq	40(%r12), %rdi
	xorl	%esi, %esi
	callq	_usb_set_intfdata
	movq	%r15, %rdi
	callq	_driver_of
	movq	40(%r12), %rsi
	movl	%eax, %edi
	callq	_usb_driver_release_interface
	movq	$0, 40(%r12)
LBB0_30:
	movq	%r14, %rdi
	callq	_kfree
LBB0_31:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	movq	-88(%rbp), %rsi
	testb	$2, (%rsi)
	jne	LBB0_34
## %bb.33:
	movl	8(%r13), %edi
	callq	_ether_addr_copy
	jmp	LBB0_35
LBB0_34:
	movq	%r13, %rdi
	callq	_eth_hw_addr_random
LBB0_35:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_RNDIS_MSG_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r14)
	movl	$44, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r14)
	movq	_RNDIS_OID_GEN_CURRENT_PACKET_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 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
	movl	(%rax), %edi
	callq	_cpu_to_le32
	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, %r15d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_30
## %bb.36:
	leaq	L_.str.8(%rip), %rsi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r15d, %ebx
	movq	%r13, %r15
	jmp	LBB0_28
	.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
	.comm	_probe,4,2                      ## @probe
	.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	_RNDIS_OID_GEN_PHYSICAL_MEDIUM,4,2 ## @RNDIS_OID_GEN_PHYSICAL_MEDIUM
	.comm	_RNDIS_PHYSICAL_MEDIUM_UNSPECIFIED,4,2 ## @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	_RNDIS_OID_802_3_PERMANENT_ADDRESS,4,2 ## @RNDIS_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	_RNDIS_OID_GEN_CURRENT_PACKET_FILTER,4,2 ## @RNDIS_OID_GEN_CURRENT_PACKET_FILTER
	.comm	_RNDIS_DEFAULT_FILTER,4,2       ## @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, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x23, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x22, [x0, #16]
Lloh0:
	adrp	x28, _CONTROL_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x28, [x28, _CONTROL_BUFFER_SIZE@GOTPAGEOFF]
	ldr	w0, [x28]
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	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [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	w8, w9, [x22]
	add	w8, w8, #4
	str	w8, [x22]
	add	w8, w9, w8
	str	w8, [x20]
	ldp	w1, w0, [x20, #32]
	mov	w2, #1
	bl	_usb_maxpacket
	str	w0, [x20, #4]
	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, #8]
	bl	_cpu_to_le32
	str	x0, [x19]
Lloh8:
	adrp	x8, _rndis_netdev_ops@GOTPAGE
Lloh9:
	ldr	x8, [x8, _rndis_netdev_ops@GOTPAGEOFF]
	str	x8, [x22, #16]
	ldr	w2, [x28]
	mov	x0, x20
	mov	x1, x19
	bl	_rndis_command
	mov	x24, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.4:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x24
	bl	_dev_err
	b	LBB0_34
LBB0_5:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_36
LBB0_6:
	mov	x24, x0
	b	LBB0_35
LBB0_7:
Lloh15:
	adrp	x8, _probe@GOTPAGE
Lloh16:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	x2, [x20, #16]
Lloh18:
	adrp	x3, l_.str@PAGE
Lloh19:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netif_dbg
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_34
LBB0_8:
	ldr	w0, [x19, #4]
	bl	_le32_to_cpu
	mov	x27, x0
	sxtw	x25, w27
	ldrsw	x26, [x20]
	cmp	w0, w26
	b.ge	LBB0_11
; %bb.9:
	ldrsw	x8, [x22]
	cmp	w27, w8
	b.le	LBB0_21
; %bb.10:
	sub	x4, x25, x8
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x2, x26
	mov	x3, x25
	bl	_dev_warn
	str	w27, [x20]
	ldr	w8, [x22]
	sub	w8, w27, w8
	str	w8, [x22, #4]
	mov	x26, x25
LBB0_11:
	ldr	w27, [x20, #8]
	ldr	w0, [x19]
	bl	_le32_to_cpu
	mov	w8, #1
	lsl	w5, w8, w0
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x2, x26
	mov	x3, x25
	mov	x4, x27
	bl	_dev_dbg
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.12:
	mov	x0, x20
	blr	x8
	cbnz	x0, LBB0_33
LBB0_13:
	str	xzr, [sp, #32]
	mov	w8, #8
	str	w8, [sp, #28]
Lloh27:
	adrp	x8, _RNDIS_OID_GEN_PHYSICAL_MEDIUM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RNDIS_OID_GEN_PHYSICAL_MEDIUM@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	add	x5, sp, #32
	add	x6, sp, #28
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	w4, #0
	bl	_rndis_query
	cbnz	w0, LBB0_15
; %bb.14:
	ldr	x0, [sp, #32]
	cbnz	x0, LBB0_16
LBB0_15:
Lloh30:
	adrp	x8, _RNDIS_PHYSICAL_MEDIUM_UNSPECIFIED@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RNDIS_PHYSICAL_MEDIUM_UNSPECIFIED@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [sp, #40]
	add	x0, sp, #40
	str	x0, [sp, #32]
LBB0_16:
Lloh33:
	adrp	x8, _FLAG_RNDIS_PHYM_WIRELESS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FLAG_RNDIS_PHYM_WIRELESS@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x24, _RNDIS_PHYSICAL_MEDIUM_WIRELESS_LAN@GOTPAGE
Lloh37:
	ldr	x24, [x24, _RNDIS_PHYSICAL_MEDIUM_WIRELESS_LAN@GOTPAGEOFF]
	tst	w8, w23
	b.eq	LBB0_18
; %bb.17:
	bl	_le32_to_cpup
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_24
LBB0_18:
Lloh38:
	adrp	x8, _FLAG_RNDIS_PHYM_NOT_WIRELESS@GOTPAGE
Lloh39:
	ldr	x8, [x8, _FLAG_RNDIS_PHYM_NOT_WIRELESS@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_22
; %bb.19:
	ldr	x0, [sp, #32]
	bl	_le32_to_cpup
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_22
; %bb.20:
Lloh41:
	adrp	x8, _probe@GOTPAGE
Lloh42:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	ldr	x2, [x20, #16]
Lloh44:
	adrp	x3, l_.str.6@PAGE
Lloh45:
	add	x3, x3, l_.str.6@PAGEOFF
	b	LBB0_25
LBB0_21:
	str	x25, [sp]
Lloh46:
	adrp	x1, l_.str.2@PAGE
Lloh47:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x26
	bl	_dev_err
Lloh48:
	adrp	x8, _EINVAL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_26
LBB0_22:
Lloh50:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	str	w8, [sp, #28]
Lloh53:
	adrp	x8, _RNDIS_OID_802_3_PERMANENT_ADDRESS@GOTPAGE
Lloh54:
	ldr	x8, [x8, _RNDIS_OID_802_3_PERMANENT_ADDRESS@GOTPAGEOFF]
Lloh55:
	ldr	w3, [x8]
	add	x5, sp, #16
	add	x6, sp, #28
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	w4, #48
	bl	_rndis_query
	mov	x24, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_27
; %bb.23:
Lloh56:
	adrp	x1, l_.str.7@PAGE
Lloh57:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_32
LBB0_24:
Lloh58:
	adrp	x8, _probe@GOTPAGE
Lloh59:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
	ldr	x2, [x20, #16]
Lloh61:
	adrp	x3, l_.str.5@PAGE
Lloh62:
	add	x3, x3, l_.str.5@PAGEOFF
LBB0_25:
	mov	x0, x20
	bl	_netif_dbg
Lloh63:
	adrp	x8, _ENODEV@GOTPAGE
Lloh64:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_26:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_33
LBB0_27:
	ldr	x1, [sp, #16]
	ldrb	w8, [x1]
	tbnz	w8, #1, LBB0_29
; %bb.28:
	ldr	w0, [x22, #8]
	bl	_ether_addr_copy
	b	LBB0_30
LBB0_29:
	mov	x0, x22
	bl	_eth_hw_addr_random
LBB0_30:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh65:
	adrp	x8, _RNDIS_MSG_SET@GOTPAGE
Lloh66:
	ldr	x8, [x8, _RNDIS_MSG_SET@GOTPAGEOFF]
Lloh67:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x19, #8]
	mov	w0, #44
	bl	_cpu_to_le32
	str	x0, [x19]
Lloh68:
	adrp	x8, _RNDIS_OID_GEN_CURRENT_PACKET_FILTER@GOTPAGE
Lloh69:
	ldr	x8, [x8, _RNDIS_OID_GEN_CURRENT_PACKET_FILTER@GOTPAGEOFF]
Lloh70:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x19, #32]
	mov	w0, #4
	bl	_cpu_to_le32
	str	x0, [x19, #24]
	mov	w0, #32
	bl	_cpu_to_le32
	str	x0, [x19, #16]
Lloh71:
	adrp	x8, _RNDIS_DEFAULT_FILTER@GOTPAGE
Lloh72:
	ldr	x8, [x8, _RNDIS_DEFAULT_FILTER@GOTPAGEOFF]
Lloh73:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x19, #40]
	ldr	w2, [x28]
	mov	x0, x20
	mov	x1, x19
	bl	_rndis_command
	mov	x24, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_37
; %bb.31:
Lloh74:
	adrp	x1, l_.str.8@PAGE
Lloh75:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_32:
	mov	x0, x21
	mov	x2, x24
	bl	_dev_err
LBB0_33:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh76:
	adrp	x8, _RNDIS_MSG_HALT@GOTPAGE
Lloh77:
	ldr	x8, [x8, _RNDIS_MSG_HALT@GOTPAGEOFF]
Lloh78:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x19, #8]
	mov	w0, #40
	bl	_cpu_to_le32
	str	x0, [x19]
	ldr	w2, [x28]
	mov	x0, x20
	mov	x1, x19
	bl	_rndis_command
LBB0_34:
	ldr	x0, [x20, #40]
	mov	x1, #0
	bl	_usb_set_intfdata
	mov	x0, x21
	bl	_driver_of
	ldr	x1, [x20, #40]
	bl	_usb_driver_release_interface
	str	xzr, [x20, #40]
LBB0_35:
	mov	x0, x19
	bl	_kfree
LBB0_36:
	mov	x0, x24
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_37:
	mov	x0, x19
	bl	_kfree
	mov	w24, #0
	b	LBB0_36
	.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 AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.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
	.comm	_probe,4,2                      ; @probe
	.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	_RNDIS_OID_GEN_PHYSICAL_MEDIUM,4,2 ; @RNDIS_OID_GEN_PHYSICAL_MEDIUM
	.comm	_RNDIS_PHYSICAL_MEDIUM_UNSPECIFIED,4,2 ; @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	_RNDIS_OID_802_3_PERMANENT_ADDRESS,4,2 ; @RNDIS_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	_RNDIS_OID_GEN_CURRENT_PACKET_FILTER,4,2 ; @RNDIS_OID_GEN_CURRENT_PACKET_FILTER
	.comm	_RNDIS_DEFAULT_FILTER,4,2       ; @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
