	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfa_nw_flash_get_attr          ## -- Begin function bfa_nw_flash_get_attr
	.p2align	4, 0x90
_bfa_nw_flash_get_attr:                 ## @bfa_nw_flash_get_attr
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	16(%rdi), %edi
	callq	_bfa_nw_ioc_is_operational
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	_BFA_STATUS_DEVBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_BFA_STATUS_IOC_NON_OP@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	leaq	8(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1, (%rbx)
	movl	%r15d, 40(%rbx)
	movq	%r12, 32(%rbx)
	movq	%r13, 24(%rbx)
	movl	4(%r14), %r15d
	movq	_BFI_MC_FLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_BFI_FLASH_H2I_QUERY_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	16(%rbx), %edi
	callq	_bfa_ioc_portid
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_bfi_h2i_set
	movl	20(%rbx), %edx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_bfa_alen_set
	movl	16(%rbx), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_bfa_nw_ioc_mbox_queue
	movq	_BFA_STATUS_OK@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BFA_STATUS_IOC_NON_OP,4,2      ## @BFA_STATUS_IOC_NON_OP
	.comm	_BFA_STATUS_DEVBUSY,4,2         ## @BFA_STATUS_DEVBUSY
	.comm	_BFI_MC_FLASH,4,2               ## @BFI_MC_FLASH
	.comm	_BFI_FLASH_H2I_QUERY_REQ,4,2    ## @BFI_FLASH_H2I_QUERY_REQ
	.comm	_BFA_STATUS_OK,4,2              ## @BFA_STATUS_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfa_nw_flash_get_attr          ; -- Begin function bfa_nw_flash_get_attr
	.p2align	2
_bfa_nw_flash_get_attr:                 ; @bfa_nw_flash_get_attr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x24, x2
	mov	x23, x1
	mov	x20, x0
	mov	x19, x0
	ldr	x21, [x19, #8]!
	ldr	w0, [x19, #8]
	bl	_bfa_nw_ioc_is_operational
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _BFA_STATUS_DEVBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BFA_STATUS_DEVBUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _BFA_STATUS_IOC_NON_OP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BFA_STATUS_IOC_NON_OP@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	w8, #1
	str	w8, [x20]
	str	w24, [x20, #40]
	stp	x23, x22, [x20, #24]
Lloh4:
	adrp	x8, _BFI_MC_FLASH@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BFI_MC_FLASH@GOTPAGEOFF]
	ldr	w22, [x21, #4]
Lloh6:
	ldr	w23, [x8]
Lloh7:
	adrp	x8, _BFI_FLASH_H2I_QUERY_REQ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BFI_FLASH_H2I_QUERY_REQ@GOTPAGEOFF]
Lloh9:
	ldr	w24, [x8]
	ldr	w0, [x20, #16]
	bl	_bfa_ioc_portid
	mov	x3, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_bfi_h2i_set
	ldr	w2, [x20, #20]
	mov	x0, x21
	mov	w1, #4
	bl	_bfa_alen_set
	ldr	w0, [x20, #16]
	mov	x1, x19
	mov	x2, #0
	mov	x3, #0
	bl	_bfa_nw_ioc_mbox_queue
Lloh10:
	adrp	x8, _BFA_STATUS_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BFA_STATUS_OK@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_BFA_STATUS_IOC_NON_OP,4,2      ; @BFA_STATUS_IOC_NON_OP
	.comm	_BFA_STATUS_DEVBUSY,4,2         ; @BFA_STATUS_DEVBUSY
	.comm	_BFI_MC_FLASH,4,2               ; @BFI_MC_FLASH
	.comm	_BFI_FLASH_H2I_QUERY_REQ,4,2    ; @BFI_FLASH_H2I_QUERY_REQ
	.comm	_BFA_STATUS_OK,4,2              ; @BFA_STATUS_OK
.subsections_via_symbols
