	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_cap_from_fw
_get_cap_from_fw:                       ## @get_cap_from_fw
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movl	$4, -36(%rbp)
	movq	_HINIC_MOD_CFGM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HINIC_CFG_NIC_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HINIC_MGMT_MSG_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-36(%rbp), %rbx
	leaq	-32(%rbp), %rcx
	xorl	%r8d, %r8d
	movq	%rcx, %r9
	pushq	%rax
	pushq	%rbx
	callq	_hinic_msg_to_mgmt
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_3
LBB0_2:
	addq	$8, %r15
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	callq	_get_capability
	movl	%eax, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HINIC_MOD_CFGM,4,2             ## @HINIC_MOD_CFGM
	.comm	_HINIC_CFG_NIC_CAP,4,2          ## @HINIC_CFG_NIC_CAP
	.comm	_HINIC_MGMT_MSG_SYNC,4,2        ## @HINIC_MGMT_MSG_SYNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get capability from FW\n"

	.no_dead_strip	_get_cap_from_fw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_cap_from_fw
_get_cap_from_fw:                       ; @get_cap_from_fw
	.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	x19, x0
	ldr	x8, [x19, #8]!
	ldr	x20, [x8]
	mov	w8, #4
	str	w8, [sp, #4]
Lloh0:
	adrp	x8, _HINIC_MOD_CFGM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HINIC_MOD_CFGM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _HINIC_CFG_NIC_CAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HINIC_CFG_NIC_CAP@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _HINIC_MGMT_MSG_SYNC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HINIC_MGMT_MSG_SYNC@GOTPAGEOFF]
Lloh8:
	ldr	w7, [x8]
	add	x3, sp, #8
	add	x5, sp, #8
	add	x6, sp, #4
	mov	w4, #0
	bl	_hinic_msg_to_mgmt
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_3
LBB0_2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_get_capability
	mov	x21, x0
LBB0_3:
	mov	x0, x21
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HINIC_MOD_CFGM,4,2             ; @HINIC_MOD_CFGM
	.comm	_HINIC_CFG_NIC_CAP,4,2          ; @HINIC_CFG_NIC_CAP
	.comm	_HINIC_MGMT_MSG_SYNC,4,2        ; @HINIC_MGMT_MSG_SYNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get capability from FW\n"

	.no_dead_strip	_get_cap_from_fw
.subsections_via_symbols
