	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnad_cb_ethport_link_status    ## -- Begin function bnad_cb_ethport_link_status
	.p2align	4, 0x90
_bnad_cb_ethport_link_status:           ## @bnad_cb_ethport_link_status
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_BNA_LINK_UP@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	sete	%al
	movq	_BNA_CEE_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	cmpl	%esi, %r13d
	sete	%r12b
	orb	%al, %r12b
	movq	_BNAD_RF_CEE_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	32(%r15), %r14
	movq	%r14, %rsi
	callq	_test_bit
	cmpl	%ebx, %r13d
	jne	LBB0_4
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_cee_toggle@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_BNAD_UPDATE_CTR
LBB0_3:
	movq	_BNAD_RF_CEE_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	jmp	LBB0_7
LBB0_4:
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_cee_toggle@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_BNAD_UPDATE_CTR
LBB0_6:
	movq	_BNAD_RF_CEE_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
LBB0_7:
	movl	16(%r15), %edi
	callq	_netif_carrier_ok
	testb	%r12b, %r12b
	je	LBB0_22
## %bb.8:
	testq	%rax, %rax
	jne	LBB0_23
## %bb.9:
	movl	16(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_info
	movl	16(%r15), %edi
	callq	_netif_carrier_on
	movq	_link_toggle@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_BNAD_UPDATE_CTR
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_23
## %bb.10:
	movq	8(%r15), %rcx
	xorl	%r14d, %r14d
	movq	_BNAD_TXQ_TX_STARTED@GOTPCREL(%rip), %r12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r15), %rax
LBB0_21:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r14
	cmpq	%rax, %r14
	jae	LBB0_23
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=2
	callq	_netif_stop_subqueue
	movq	_netif_queue_stop@GOTPCREL(%rip), %rax
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_BNAD_UPDATE_CTR
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=2
	incq	%r13
	movq	8(%r15), %rcx
	cmpq	%rcx, %r13
	jae	LBB0_20
LBB0_14:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%r15), %rax
	movq	(%rax,%r14,8), %rax
	movq	(%rax,%r13,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	4(%rsi), %ebx
	movl	(%r12), %edi
	callq	_test_bit
	movl	16(%r15), %edi
	movl	%ebx, %esi
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=2
	callq	_netif_wake_subqueue
	movq	_netif_queue_wakeup@GOTPCREL(%rip), %rax
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_21
LBB0_22:
	testq	%rax, %rax
	je	LBB0_23
## %bb.24:
	movl	16(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_info
	movl	16(%r15), %edi
	callq	_netif_carrier_off
	movq	_link_toggle@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BNAD_UPDATE_CTR                ## TAILCALL
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNA_LINK_UP,4,2                ## @BNA_LINK_UP
	.comm	_BNA_CEE_UP,4,2                 ## @BNA_CEE_UP
	.comm	_BNAD_RF_CEE_RUNNING,4,2        ## @BNAD_RF_CEE_RUNNING
	.comm	_cee_toggle,4,2                 ## @cee_toggle
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"link up\n"

	.comm	_link_toggle,4,2                ## @link_toggle
	.comm	_BNAD_TXQ_TX_STARTED,4,2        ## @BNAD_TXQ_TX_STARTED
	.comm	_netif_queue_wakeup,4,2         ## @netif_queue_wakeup
	.comm	_netif_queue_stop,4,2           ## @netif_queue_stop
L_.str.1:                               ## @.str.1
	.asciz	"link down\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnad_cb_ethport_link_status    ; -- Begin function bnad_cb_ethport_link_status
	.p2align	2
_bnad_cb_ethport_link_status:           ; @bnad_cb_ethport_link_status
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _BNA_LINK_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNA_LINK_UP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
Lloh3:
	adrp	x8, _BNA_CEE_UP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNA_CEE_UP@GOTPAGEOFF]
	cset	w23, eq
Lloh5:
	ldr	w24, [x8]
Lloh6:
	adrp	x22, _BNAD_RF_CEE_RUNNING@GOTPAGE
Lloh7:
	ldr	x22, [x22, _BNAD_RF_CEE_RUNNING@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x20, x19, #32
	mov	x1, x20
	bl	_test_bit
	cmp	w24, w21
	cset	w8, eq
	orr	w21, w23, w8
	b.ne	LBB0_4
; %bb.1:
	cbnz	x0, LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _cee_toggle@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cee_toggle@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BNAD_UPDATE_CTR
LBB0_3:
	ldr	w0, [x22]
	mov	x1, x20
	bl	_set_bit
	b	LBB0_7
LBB0_4:
	cbz	x0, LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _cee_toggle@GOTPAGE
Lloh12:
	ldr	x8, [x8, _cee_toggle@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BNAD_UPDATE_CTR
LBB0_6:
	ldr	w0, [x22]
	mov	x1, x20
	bl	_clear_bit
LBB0_7:
	ldr	w0, [x19, #16]
	bl	_netif_carrier_ok
	cbz	w21, LBB0_21
; %bb.8:
	cbnz	x0, LBB0_23
; %bb.9:
	ldr	w0, [x19, #16]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_info
	ldr	w0, [x19, #16]
	bl	_netif_carrier_on
Lloh16:
	adrp	x8, _link_toggle@GOTPAGE
Lloh17:
	ldr	x8, [x8, _link_toggle@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BNAD_UPDATE_CTR
	ldr	x8, [x19]
	cbz	x8, LBB0_23
; %bb.10:
	mov	x21, #0
	ldr	x9, [x19, #8]
Lloh19:
	adrp	x22, _BNAD_TXQ_TX_STARTED@GOTPAGE
Lloh20:
	ldr	x22, [x22, _BNAD_TXQ_TX_STARTED@GOTPAGEOFF]
Lloh21:
	adrp	x23, _netif_queue_stop@GOTPAGE
Lloh22:
	ldr	x23, [x23, _netif_queue_stop@GOTPAGEOFF]
Lloh23:
	adrp	x24, _netif_queue_wakeup@GOTPAGE
Lloh24:
	ldr	x24, [x24, _netif_queue_wakeup@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x19]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x21, x21, #1
	cmp	x21, x8
	b.hs	LBB0_23
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	cbz	x9, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x25, #0
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_18 Depth=2
	bl	_netif_stop_subqueue
	mov	x8, x23
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=2
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BNAD_UPDATE_CTR
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	add	x25, x25, #1
	ldr	x9, [x19, #8]
	cmp	x25, x9
	b.hs	LBB0_11
LBB0_18:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x21, lsl #3]
	ldr	x1, [x8, x25, lsl #3]
	cbz	x1, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	w20, [x1, #4]
	ldr	w0, [x22]
	bl	_test_bit
	mov	x8, x0
	ldr	w0, [x19, #16]
	mov	x1, x20
	cbz	x8, LBB0_15
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=2
	bl	_netif_wake_subqueue
	mov	x8, x24
	b	LBB0_16
LBB0_21:
	cbz	x0, LBB0_23
; %bb.22:
	ldr	w0, [x19, #16]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_info
	ldr	w0, [x19, #16]
	bl	_netif_carrier_off
Lloh27:
	adrp	x8, _link_toggle@GOTPAGE
Lloh28:
	ldr	x8, [x8, _link_toggle@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_BNAD_UPDATE_CTR
LBB0_23:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_BNA_LINK_UP,4,2                ; @BNA_LINK_UP
	.comm	_BNA_CEE_UP,4,2                 ; @BNA_CEE_UP
	.comm	_BNAD_RF_CEE_RUNNING,4,2        ; @BNAD_RF_CEE_RUNNING
	.comm	_cee_toggle,4,2                 ; @cee_toggle
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"link up\n"

	.comm	_link_toggle,4,2                ; @link_toggle
	.comm	_BNAD_TXQ_TX_STARTED,4,2        ; @BNAD_TXQ_TX_STARTED
	.comm	_netif_queue_wakeup,4,2         ; @netif_queue_wakeup
	.comm	_netif_queue_stop,4,2           ; @netif_queue_stop
l_.str.1:                               ; @.str.1
	.asciz	"link down\n"

.subsections_via_symbols
