	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cna_get_firmware_buf           ## -- Begin function cna_get_firmware_buf
	.p2align	4, 0x90
_cna_get_firmware_buf:                  ## @cna_get_firmware_buf
	.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	(%rdi), %rdi
	movq	_BFA_PCI_DEVICE_ID_CT2@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_4
## %bb.1:
	movq	_bfi_image_ct2_cna_size@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	_CNA_FW_FILE_CT2@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_bfi_image_ct2_cna@GOTPCREL(%rip), %rsi
	movq	_bfi_image_ct2_cna_size@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	callq	_cna_read_firmware
LBB0_3:
	movq	_bfi_image_ct2_cna@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	callq	_bfa_asic_id_ct
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	_bfi_image_ct_cna_size@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_8
## %bb.7:
	movq	_CNA_FW_FILE_CT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_bfi_image_ct_cna@GOTPCREL(%rip), %rsi
	movq	_bfi_image_ct_cna_size@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	callq	_cna_read_firmware
LBB0_8:
	movq	_bfi_image_ct_cna@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_BFA_PCI_DEVICE_ID_CT2,8,3      ## @BFA_PCI_DEVICE_ID_CT2
	.comm	_bfi_image_ct2_cna_size,8,3     ## @bfi_image_ct2_cna_size
	.comm	_bfi_image_ct2_cna,8,3          ## @bfi_image_ct2_cna
	.comm	_CNA_FW_FILE_CT2,4,2            ## @CNA_FW_FILE_CT2
	.comm	_bfi_image_ct_cna_size,8,3      ## @bfi_image_ct_cna_size
	.comm	_bfi_image_ct_cna,8,3           ## @bfi_image_ct_cna
	.comm	_CNA_FW_FILE_CT,4,2             ## @CNA_FW_FILE_CT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cna_get_firmware_buf           ; -- Begin function cna_get_firmware_buf
	.p2align	2
_cna_get_firmware_buf:                  ; @cna_get_firmware_buf
	.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
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _BFA_PCI_DEVICE_ID_CT2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BFA_PCI_DEVICE_ID_CT2@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _bfi_image_ct2_cna_size@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bfi_image_ct2_cna_size@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbnz	x8, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _CNA_FW_FILE_CT2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CNA_FW_FILE_CT2@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x1, _bfi_image_ct2_cna@GOTPAGE
Lloh10:
	ldr	x1, [x1, _bfi_image_ct2_cna@GOTPAGEOFF]
Lloh11:
	adrp	x2, _bfi_image_ct2_cna_size@GOTPAGE
Lloh12:
	ldr	x2, [x2, _bfi_image_ct2_cna_size@GOTPAGEOFF]
	mov	x0, x19
	bl	_cna_read_firmware
LBB0_3:
Lloh13:
	adrp	x8, _bfi_image_ct2_cna@GOTPAGE
Lloh14:
	ldr	x8, [x8, _bfi_image_ct2_cna@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	bl	_bfa_asic_id_ct
	cbz	x0, LBB0_9
; %bb.5:
Lloh15:
	adrp	x8, _bfi_image_ct_cna_size@GOTPAGE
Lloh16:
	ldr	x8, [x8, _bfi_image_ct_cna_size@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cbnz	x8, LBB0_7
; %bb.6:
Lloh18:
	adrp	x8, _CNA_FW_FILE_CT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CNA_FW_FILE_CT@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
Lloh21:
	adrp	x1, _bfi_image_ct_cna@GOTPAGE
Lloh22:
	ldr	x1, [x1, _bfi_image_ct_cna@GOTPAGEOFF]
Lloh23:
	adrp	x2, _bfi_image_ct_cna_size@GOTPAGE
Lloh24:
	ldr	x2, [x2, _bfi_image_ct_cna_size@GOTPAGEOFF]
	mov	x0, x19
	bl	_cna_read_firmware
LBB0_7:
Lloh25:
	adrp	x8, _bfi_image_ct_cna@GOTPAGE
Lloh26:
	ldr	x8, [x8, _bfi_image_ct_cna@GOTPAGEOFF]
LBB0_8:
	ldr	x0, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_BFA_PCI_DEVICE_ID_CT2,8,3      ; @BFA_PCI_DEVICE_ID_CT2
	.comm	_bfi_image_ct2_cna_size,8,3     ; @bfi_image_ct2_cna_size
	.comm	_bfi_image_ct2_cna,8,3          ; @bfi_image_ct2_cna
	.comm	_CNA_FW_FILE_CT2,4,2            ; @CNA_FW_FILE_CT2
	.comm	_bfi_image_ct_cna_size,8,3      ; @bfi_image_ct_cna_size
	.comm	_bfi_image_ct_cna,8,3           ; @bfi_image_ct_cna
	.comm	_CNA_FW_FILE_CT,4,2             ; @CNA_FW_FILE_CT
.subsections_via_symbols
