	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rndis_query
_rndis_query:                           ## @rndis_query
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r14d
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	leal	40(%r14), %ebx
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	_RNDIS_MSG_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 32(%r15)
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%r15)
	movl	%r12d, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r15)
	movl	%r14d, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r15)
	movl	$20, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r15)
	movq	_CONTROL_BUFFER_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_rndis_command
	movl	%eax, %r13d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_7
LBB0_2:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	8(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, %r12d
	movl	4(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, %r14d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leal	(%r12,%r14), %eax
	addl	$8, %eax
	xorl	%edi, %edi
	cmpl	(%rbx), %eax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	16(%rbp), %rax
	movl	(%rax), %ecx
	cmpl	$-1, %ecx
	je	LBB0_5
## %bb.4:
	cmpl	%ecx, %r14d
	je	LBB0_5
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EDOM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_7
LBB0_5:
	movslq	-56(%rbp), %rcx                 ## 4-byte Folded Reload
	addq	%rcx, %r15
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, (%rcx)
	movl	%r14d, (%rax)
LBB0_7:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RNDIS_MSG_QUERY,4,2            ## @RNDIS_MSG_QUERY
	.comm	_CONTROL_BUFFER_SIZE,4,2        ## @CONTROL_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RNDIS_MSG_QUERY(0x%08x) failed, %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"RNDIS_MSG_QUERY(0x%08x) invalid response - off %d len %d\n"

	.comm	_EDOM,4,2                       ## @EDOM
	.no_dead_strip	_rndis_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rndis_query
_rndis_query:                           ; @rndis_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x6
	mov	x22, x5
	mov	x24, x4
	mov	x19, x3
	mov	x23, x2
	mov	x20, x1
	mov	x25, x0
	add	w26, w4, #40
	mov	x0, x2
	mov	w1, #0
	mov	x2, x26
	bl	_memset
Lloh0:
	adrp	x8, _RNDIS_MSG_QUERY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RNDIS_MSG_QUERY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x23, #32]
	mov	x0, x26
	bl	_cpu_to_le32
	str	x0, [x23, #24]
	mov	x0, x19
	bl	_cpu_to_le32
	str	x0, [x23, #16]
	mov	x0, x24
	bl	_cpu_to_le32
	str	x0, [x23, #8]
	mov	w0, #20
	bl	_cpu_to_le32
	str	x0, [x23]
Lloh3:
	adrp	x27, _CONTROL_BUFFER_SIZE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _CONTROL_BUFFER_SIZE@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x0, x25
	mov	x1, x23
	bl	_rndis_command
	mov	x24, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x3, x24
	bl	_dev_err
	b	LBB0_7
LBB0_2:
	ldr	w0, [x23, #8]
	bl	_le32_to_cpu
	mov	x25, x0
	ldr	w0, [x23, #4]
	bl	_le32_to_cpu
	mov	x26, x0
	add	w8, w25, w0
	add	w8, w8, #8
	ldr	w9, [x27]
	cmp	w8, w9
	cset	w0, gt
	bl	_unlikely
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	w8, [x21]
	cmn	w8, #1
	b.eq	LBB0_6
; %bb.4:
	cmp	w26, w8
	b.eq	LBB0_6
LBB0_5:
	str	x26, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x3, x25
	bl	_dev_err
Lloh9:
	adrp	x8, _EDOM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EDOM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_7
LBB0_6:
	add	x8, x23, w25, sxtw
	str	x8, [x22]
	str	w26, [x21]
LBB0_7:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RNDIS_MSG_QUERY,4,2            ; @RNDIS_MSG_QUERY
	.comm	_CONTROL_BUFFER_SIZE,4,2        ; @CONTROL_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RNDIS_MSG_QUERY(0x%08x) failed, %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"RNDIS_MSG_QUERY(0x%08x) invalid response - off %d len %d\n"

	.comm	_EDOM,4,2                       ; @EDOM
	.no_dead_strip	_rndis_query
.subsections_via_symbols
