	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnad_get_debug_drvinfo
_bnad_get_debug_drvinfo:                ## @bnad_get_debug_drvinfo
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
	leaq	12(%rbx), %rdi
	leaq	28(%r14), %rsi
	callq	_bfa_nw_ioc_get_attr
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
	movq	%rbx, -48(%rbp)
	movq	$0, -64(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_init_completion
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
	leaq	8(%rbx), %rdi
	leaq	24(%r14), %rsi
	movq	_bnad_cb_completion@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	callq	_bfa_nw_cee_get_attr
	movl	%eax, %r12d
	movq	_BFA_STATUS_OK@GOTPCREL(%rip), %r15
	movl	(%r15), %r13d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
	cmpl	%r13d, %r12d
	jne	LBB0_3
## %bb.1:
	leaq	-56(%rbp), %r13
	movq	%r13, %rdi
	callq	_wait_for_completion
	movq	-64(%rbp), %rax
	movq	%rax, 16(%r14)
	movq	$0, -64(%rbp)
	movq	%r13, %rdi
	callq	_init_completion
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
	leaq	4(%rbx), %rdi
	leaq	8(%r14), %rsi
	movq	_bnad_cb_completion@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	callq	_bfa_nw_flash_get_attr
	movl	%eax, %r12d
	movl	(%r15), %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
	cmpl	%r15d, %r12d
	jne	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	callq	_wait_for_completion
	movq	-64(%rbp), %rax
	movq	%rax, (%r14)
LBB0_3:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BFA_STATUS_FAILED,4,2          ## @BFA_STATUS_FAILED
	.comm	_bnad_cb_completion,4,2         ## @bnad_cb_completion
	.comm	_BFA_STATUS_OK,4,2              ## @BFA_STATUS_OK
	.no_dead_strip	_bnad_get_debug_drvinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnad_get_debug_drvinfo
_bnad_get_debug_drvinfo:                ; @bnad_get_debug_drvinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	mov	x1, #0
	bl	_spin_lock_irqsave
	add	x0, x20, #12
	add	x1, x19, #28
	bl	_bfa_nw_ioc_get_attr
	mov	x0, x20
	mov	x1, #0
	bl	_spin_unlock_irqrestore
	str	x20, [sp, #24]
	str	xzr, [sp, #8]
	add	x8, sp, #8
	add	x21, x8, #8
	mov	x0, x21
	bl	_init_completion
	mov	x0, x20
	mov	x1, #0
	bl	_spin_lock_irqsave
	add	x0, x20, #8
	add	x1, x19, #24
Lloh0:
	adrp	x23, _bnad_cb_completion@GOTPAGE
Lloh1:
	ldr	x23, [x23, _bnad_cb_completion@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x3, sp, #8
	bl	_bfa_nw_cee_get_attr
	mov	x22, x0
Lloh2:
	adrp	x24, _BFA_STATUS_OK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _BFA_STATUS_OK@GOTPAGEOFF]
	ldr	w25, [x24]
	mov	x0, x20
	mov	x1, #0
	bl	_spin_unlock_irqrestore
	cmp	w22, w25
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_wait_for_completion
	ldr	x8, [sp, #8]
	str	x8, [x19, #16]
	str	xzr, [sp, #8]
	mov	x0, x21
	bl	_init_completion
	mov	x0, x20
	mov	x1, #0
	bl	_spin_lock_irqsave
	add	x0, x20, #4
	add	x1, x19, #8
	ldr	w2, [x23]
	add	x3, sp, #8
	bl	_bfa_nw_flash_get_attr
	mov	x22, x0
	ldr	w23, [x24]
	mov	x0, x20
	mov	x1, #0
	bl	_spin_unlock_irqrestore
	cmp	w22, w23
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_wait_for_completion
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_3:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BFA_STATUS_FAILED,4,2          ; @BFA_STATUS_FAILED
	.comm	_bnad_cb_completion,4,2         ; @bnad_cb_completion
	.comm	_BFA_STATUS_OK,4,2              ; @BFA_STATUS_OK
	.no_dead_strip	_bnad_get_debug_drvinfo
.subsections_via_symbols
