	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rndis_query_hwcaps
_rndis_query_hwcaps:                    ## @rndis_query_hwcaps
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	$24, -32(%rbp)
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_OID_TCP_OFFLOAD_HARDWARE_CAPABILITIES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %r8
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rcx
	callq	_rndis_filter_query_device
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	(%rbx), %rdx
	movq	_NDIS_OBJECT_TYPE_OFFLOAD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_2
## %bb.4:
	movq	8(%rbx), %rdx
	movq	_NDIS_OFFLOAD_PARAMETERS_REVISION_1@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jge	LBB0_6
## %bb.5:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_2:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
LBB0_3:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_netdev_warn
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	16(%rbx), %rdx
	movq	-32(%rbp), %rcx
	cmpq	%rcx, %rdx
	jg	LBB0_8
## %bb.7:
	xorl	%r15d, %r15d
	movq	_NDIS_OFFLOAD_SIZE_6_0@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jge	LBB0_10
LBB0_8:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_netdev_warn
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_OID_TCP_OFFLOAD_HARDWARE_CAPABILITIES,4,2 ## @OID_TCP_OFFLOAD_HARDWARE_CAPABILITIES
	.comm	_NDIS_OBJECT_TYPE_OFFLOAD,8,3   ## @NDIS_OBJECT_TYPE_OFFLOAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid NDIS objtype %#x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NDIS_OFFLOAD_PARAMETERS_REVISION_1,8,3 ## @NDIS_OFFLOAD_PARAMETERS_REVISION_1
L_.str.1:                               ## @.str.1
	.asciz	"invalid NDIS objrev %x\n"

	.comm	_NDIS_OFFLOAD_SIZE_6_0,8,3      ## @NDIS_OFFLOAD_SIZE_6_0
L_.str.2:                               ## @.str.2
	.asciz	"invalid NDIS objsize %u, data size %u\n"

	.no_dead_strip	_rndis_query_hwcaps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rndis_query_hwcaps
_rndis_query_hwcaps:                    ; @rndis_query_hwcaps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	w8, #24
	str	x8, [sp, #8]
	mov	x0, x2
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _OID_TCP_OFFLOAD_HARDWARE_CAPABILITIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OID_TCP_OFFLOAD_HARDWARE_CAPABILITIES@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_rndis_filter_query_device
	cbnz	w0, LBB0_10
; %bb.1:
	ldr	x2, [x20]
Lloh3:
	adrp	x8, _NDIS_OBJECT_TYPE_OFFLOAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NDIS_OBJECT_TYPE_OFFLOAD@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_4
; %bb.2:
	ldr	x2, [x20, #8]
Lloh6:
	adrp	x8, _NDIS_OFFLOAD_PARAMETERS_REVISION_1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NDIS_OFFLOAD_PARAMETERS_REVISION_1@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ge	LBB0_5
; %bb.3:
	ldr	w0, [x19]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_4:
	ldr	w0, [x19]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_5:
	ldr	x2, [x20, #16]
	ldr	x8, [sp, #8]
	cmp	x2, x8
	b.gt	LBB0_8
; %bb.6:
Lloh13:
	adrp	x9, _NDIS_OFFLOAD_SIZE_6_0@GOTPAGE
Lloh14:
	ldr	x9, [x9, _NDIS_OFFLOAD_SIZE_6_0@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x2, x9
	b.lt	LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
	ldr	w0, [x19]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	bl	_netdev_warn
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_OID_TCP_OFFLOAD_HARDWARE_CAPABILITIES,4,2 ; @OID_TCP_OFFLOAD_HARDWARE_CAPABILITIES
	.comm	_NDIS_OBJECT_TYPE_OFFLOAD,8,3   ; @NDIS_OBJECT_TYPE_OFFLOAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid NDIS objtype %#x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NDIS_OFFLOAD_PARAMETERS_REVISION_1,8,3 ; @NDIS_OFFLOAD_PARAMETERS_REVISION_1
l_.str.1:                               ; @.str.1
	.asciz	"invalid NDIS objrev %x\n"

	.comm	_NDIS_OFFLOAD_SIZE_6_0,8,3      ; @NDIS_OFFLOAD_SIZE_6_0
l_.str.2:                               ; @.str.2
	.asciz	"invalid NDIS objsize %u, data size %u\n"

	.no_dead_strip	_rndis_query_hwcaps
.subsections_via_symbols
