	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bba_init                       ## -- Begin function bba_init
	.p2align	4, 0x90
_bba_init:                              ## @bba_init
	.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	%rdi, %r15
	movq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	___bba_exi_stop
	movq	_NETIF_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_LWIP_DEBUGF
	movq	_EXI_CHANNEL_2@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_bba_event_handler@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_EXI_RegisterEXICallback
	movq	%r15, %rdi
	callq	_bba_probe
	movq	_ERR_OK@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	___bba_get_linkstateasync
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_NETIF_FLAG_LINK_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	jmp	LBB0_5
LBB0_1:
	movq	%rax, %rbx
	movl	(%r12), %edi
	xorl	%esi, %esi
	callq	_EXI_RegisterEXICallback
	jmp	LBB0_6
LBB0_4:
	movl	(%r12), %edi
	xorl	%esi, %esi
	callq	_EXI_RegisterEXICallback
	movq	_ERR_IF@GOTPCREL(%rip), %r13
LBB0_5:
	movq	(%r13), %rbx
LBB0_6:
	movq	%r14, %rdi
	callq	___bba_exi_wake
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_DEBUG,4,2                ## @NETIF_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bba_init(call EXI_RegisterEXICallback())\n"

	.comm	_EXI_CHANNEL_2,4,2              ## @EXI_CHANNEL_2
	.comm	_bba_event_handler,8,3          ## @bba_event_handler
	.comm	_ERR_OK,8,3                     ## @ERR_OK
	.comm	_NETIF_FLAG_LINK_UP,4,2         ## @NETIF_FLAG_LINK_UP
	.comm	_ERR_IF,8,3                     ## @ERR_IF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bba_init                       ; -- Begin function bba_init
	.p2align	2
_bba_init:                              ; @bba_init
	.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	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	___bba_exi_stop
Lloh0:
	adrp	x8, _NETIF_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_LWIP_DEBUGF
Lloh5:
	adrp	x22, _EXI_CHANNEL_2@GOTPAGE
Lloh6:
	ldr	x22, [x22, _EXI_CHANNEL_2@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh7:
	adrp	x8, _bba_event_handler@GOTPAGE
Lloh8:
	ldr	x8, [x8, _bba_event_handler@GOTPAGEOFF]
Lloh9:
	ldr	x1, [x8]
	bl	_EXI_RegisterEXICallback
	mov	x0, x20
	bl	_bba_probe
Lloh10:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	___bba_get_linkstateasync
	cbz	x0, LBB0_4
; %bb.2:
Lloh13:
	adrp	x8, _NETIF_FLAG_LINK_UP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NETIF_FLAG_LINK_UP@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
Lloh16:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	x21, x0
	ldr	w0, [x22]
	mov	x1, #0
	bl	_EXI_RegisterEXICallback
	b	LBB0_6
LBB0_4:
	ldr	w0, [x22]
	mov	x1, #0
	bl	_EXI_RegisterEXICallback
Lloh18:
	adrp	x8, _ERR_IF@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERR_IF@GOTPAGEOFF]
LBB0_5:
	ldr	x21, [x8]
LBB0_6:
	mov	x0, x19
	bl	___bba_exi_wake
	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
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_DEBUG,4,2                ; @NETIF_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bba_init(call EXI_RegisterEXICallback())\n"

	.comm	_EXI_CHANNEL_2,4,2              ; @EXI_CHANNEL_2
	.comm	_bba_event_handler,8,3          ; @bba_event_handler
	.comm	_ERR_OK,8,3                     ; @ERR_OK
	.comm	_NETIF_FLAG_LINK_UP,4,2         ; @NETIF_FLAG_LINK_UP
	.comm	_ERR_IF,8,3                     ; @ERR_IF
.subsections_via_symbols
