	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_fw_init_one_p1
_bnxt_fw_init_one_p1:                   ## @bnxt_fw_init_one_p1
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$0, (%rdi)
	callq	_bnxt_hwrm_ver_get
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movl	(%rbx), %eax
	movq	_BNXT_FW_CAP_KONG_MB_CHNL@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	je	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_bnxt_alloc_kong_hwrm_resources
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	(%r14), %eax
	notl	%eax
	andl	(%rbx), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_5
LBB0_3:
	movl	(%rbx), %eax
LBB0_5:
	movq	_BNXT_FW_CAP_SHORT_CMD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.6:
	movq	8(%rbx), %rax
	movq	_BNXT_HWRM_MAX_REQ_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_8
LBB0_7:
	movq	%rbx, %rdi
	callq	_bnxt_alloc_hwrm_short_cmd_req
	testl	%eax, %eax
	jne	LBB0_11
LBB0_8:
	movq	%rbx, %rdi
	callq	_bnxt_hwrm_func_reset
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_10:
	movq	%rbx, %rdi
	callq	_bnxt_hwrm_fw_set_time
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_FW_CAP_KONG_MB_CHNL,4,2   ## @BNXT_FW_CAP_KONG_MB_CHNL
	.comm	_BNXT_FW_CAP_SHORT_CMD,4,2      ## @BNXT_FW_CAP_SHORT_CMD
	.comm	_BNXT_HWRM_MAX_REQ_LEN,8,3      ## @BNXT_HWRM_MAX_REQ_LEN
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_bnxt_fw_init_one_p1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_fw_init_one_p1
_bnxt_fw_init_one_p1:                   ; @bnxt_fw_init_one_p1
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	str	wzr, [x0]
	bl	_bnxt_hwrm_ver_get
	cbnz	w0, LBB0_11
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x20, _BNXT_FW_CAP_KONG_MB_CHNL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _BNXT_FW_CAP_KONG_MB_CHNL@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_bnxt_alloc_kong_hwrm_resources
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w8, [x20]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
	ldr	w8, [x19]
LBB0_5:
Lloh2:
	adrp	x9, _BNXT_FW_CAP_SHORT_CMD@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BNXT_FW_CAP_SHORT_CMD@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _BNXT_HWRM_MAX_REQ_LEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BNXT_HWRM_MAX_REQ_LEN@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_bnxt_alloc_hwrm_short_cmd_req
	cbnz	w0, LBB0_11
LBB0_8:
	mov	x0, x19
	bl	_bnxt_hwrm_func_reset
	cbz	w0, LBB0_10
; %bb.9:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_bnxt_hwrm_fw_set_time
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_FW_CAP_KONG_MB_CHNL,4,2   ; @BNXT_FW_CAP_KONG_MB_CHNL
	.comm	_BNXT_FW_CAP_SHORT_CMD,4,2      ; @BNXT_FW_CAP_SHORT_CMD
	.comm	_BNXT_HWRM_MAX_REQ_LEN,8,3      ; @BNXT_HWRM_MAX_REQ_LEN
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_bnxt_fw_init_one_p1
.subsections_via_symbols
