	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function myri10ge_get_firmware_capabilities
_myri10ge_get_firmware_capabilities:    ## @myri10ge_get_firmware_capabilities
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rax
	movq	_NETIF_F_HW_CSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%rdi, %rbx
	movl	%ecx, (%rdi)
	movq	_MXGEFW_CMD_GET_MAX_TSO6_HDR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_myri10ge_send_cmd
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	-24(%rbp), %eax
	movl	%eax, 4(%rbx)
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_2:
	movq	_MXGEFW_CMD_GET_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_myri10ge_send_cmd
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_4:
	movl	-24(%rbp), %eax
	sarl	%eax
	andl	$-2, %eax
	movl	%eax, 8(%rbx)
LBB0_5:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_NETIF_F_HW_CSUM,4,2            ## @NETIF_F_HW_CSUM
	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.comm	_MXGEFW_CMD_GET_MAX_TSO6_HDR_SIZE,4,2 ## @MXGEFW_CMD_GET_MAX_TSO6_HDR_SIZE
	.comm	_NETIF_F_TSO6,4,2               ## @NETIF_F_TSO6
	.comm	_MXGEFW_CMD_GET_RX_RING_SIZE,4,2 ## @MXGEFW_CMD_GET_RX_RING_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed MXGEFW_CMD_GET_RX_RING_SIZE\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_myri10ge_get_firmware_capabilities
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function myri10ge_get_firmware_capabilities
_myri10ge_get_firmware_capabilities:    ; @myri10ge_get_firmware_capabilities
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _NETIF_F_SG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_F_SG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NETIF_F_HW_CSUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NETIF_F_HW_CSUM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _NETIF_F_TSO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NETIF_F_TSO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x0]
Lloh9:
	adrp	x8, _MXGEFW_CMD_GET_MAX_TSO6_HDR_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MXGEFW_CMD_GET_MAX_TSO6_HDR_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w3, #0
	bl	_myri10ge_send_cmd
	cbnz	w0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _NETIF_F_TSO6@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NETIF_F_TSO6@GOTPAGEOFF]
	ldr	w9, [sp, #8]
Lloh14:
	ldr	w8, [x8]
	ldr	w10, [x19]
	orr	w8, w10, w8
	stp	w8, w9, [x19]
LBB0_2:
Lloh15:
	adrp	x8, _MXGEFW_CMD_GET_RX_RING_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MXGEFW_CMD_GET_RX_RING_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #0
	bl	_myri10ge_send_cmd
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x0, [x19, #16]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh20:
	adrp	x8, _ENXIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	ldr	w8, [sp, #8]
	asr	w8, w8, #1
	and	w8, w8, #0xfffffffe
	str	w8, [x19, #8]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_NETIF_F_HW_CSUM,4,2            ; @NETIF_F_HW_CSUM
	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.comm	_MXGEFW_CMD_GET_MAX_TSO6_HDR_SIZE,4,2 ; @MXGEFW_CMD_GET_MAX_TSO6_HDR_SIZE
	.comm	_NETIF_F_TSO6,4,2               ; @NETIF_F_TSO6
	.comm	_MXGEFW_CMD_GET_RX_RING_SIZE,4,2 ; @MXGEFW_CMD_GET_RX_RING_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed MXGEFW_CMD_GET_RX_RING_SIZE\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_myri10ge_get_firmware_capabilities
.subsections_via_symbols
