	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sxgbe_hw_init
_sxgbe_hw_init:                         ## @sxgbe_hw_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kmalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_sxgbe_get_ops
	movq	16(%rbx), %rax
	movq	8(%rax), %rax
	movl	24(%rbx), %edi
	callq	*(%rax)
	movzbl	%al, %edx
	shrl	$16, %eax
	movzbl	%al, %esi
	movq	16(%rbx), %rax
	movl	%esi, (%rax)
	movl	%edx, 4(%rax)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	%rbx, %rdi
	callq	_sxgbe_get_hw_features
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
LBB0_6:
	cmpq	$0, (%rbx)
	je	LBB0_7
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_info
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	cmpq	$0, 8(%rbx)
	jne	LBB0_5
	jmp	LBB0_6
LBB0_7:
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"user ID: 0x%x, Controller ID: 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Hardware features not found\n"

L_.str.2:                               ## @.str.2
	.asciz	"TX Checksum offload supported\n"

L_.str.3:                               ## @.str.3
	.asciz	"RX Checksum offload supported\n"

	.no_dead_strip	_sxgbe_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sxgbe_hw_init
_sxgbe_hw_init:                         ; @sxgbe_hw_init
	.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, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kmalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.1:
	bl	_sxgbe_get_ops
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	w0, [x19, #24]
	blr	x8
	ubfx	w8, w0, #16, #8
	ldr	x9, [x19, #16]
	and	w10, w0, #0xff
	stp	w8, w10, [x9]
	stp	x8, x10, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	mov	x0, x19
	bl	_sxgbe_get_hw_features
	cbz	w0, LBB0_9
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
LBB0_3:
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
LBB0_4:
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.5:
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_3
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"user ID: 0x%x, Controller ID: 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Hardware features not found\n"

l_.str.2:                               ; @.str.2
	.asciz	"TX Checksum offload supported\n"

l_.str.3:                               ; @.str.3
	.asciz	"RX Checksum offload supported\n"

	.no_dead_strip	_sxgbe_hw_init
.subsections_via_symbols
