	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bdx_open
_bdx_open:                              ## @bdx_open
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_bdx_reset
	movq	%r14, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	12(%r15), %edi
	callq	_netif_stop_queue
LBB0_2:
	movq	%r15, %rdi
	callq	_bdx_tx_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	callq	_bdx_rx_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	callq	_bdx_fw_load
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	leaq	8(%r15), %rsi
	movq	%r15, %rdi
	callq	_bdx_rx_alloc_skbs
	movq	%r15, %rdi
	callq	_bdx_hw_start
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	addq	$4, %rdi
	callq	_napi_enable
	movl	(%r15), %edi
	callq	_print_fw_id
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_RET
LBB0_7:
	movq	%r14, %rdi
	callq	_bdx_close
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RET                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENTER,4,2                      ## @ENTER
	.no_dead_strip	_bdx_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bdx_open
_bdx_open:                              ; @bdx_open
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_netdev_priv
	mov	x20, x0
	bl	_bdx_reset
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20, #12]
	bl	_netif_stop_queue
LBB0_2:
	mov	x0, x20
	bl	_bdx_tx_init
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_bdx_rx_init
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.4:
	mov	x0, x20
	bl	_bdx_fw_load
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.5:
	add	x1, x20, #8
	mov	x0, x20
	bl	_bdx_rx_alloc_skbs
	mov	x0, x20
	bl	_bdx_hw_start
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.6:
	add	x0, x20, #4
	bl	_napi_enable
	ldr	w0, [x20]
	bl	_print_fw_id
	mov	w0, #0
	bl	_RET
LBB0_7:
	mov	x0, x19
	bl	_bdx_close
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_RET
	.cfi_endproc
                                        ; -- End function
	.comm	_ENTER,4,2                      ; @ENTER
	.no_dead_strip	_bdx_open
.subsections_via_symbols
