	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_bba_init                   ## -- Begin function uip_bba_init
	.p2align	4, 0x90
_uip_bba_init:                          ## @uip_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_bba_probe
	testq	%rax, %rax
	js	LBB0_9
## %bb.1:
	xorl	%eax, %eax
	callq	_bba_dochallengeresponse
	testq	%rax, %rax
	js	LBB0_9
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_udelay
	xorl	%eax, %eax
	callq	___bba_getlink_state_async
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rbx), %ecx
	cmpl	$9999, %ebx                     ## imm = 0x270F
	movl	%ecx, %ebx
	jb	LBB0_3
LBB0_5:
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	_UIP_NETIF_FLAG_LINK_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_uip_netif_setup
	xorl	%eax, %eax
	callq	_uip_arp_init
	movq	_bba_recv_pbufs@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	callq	_gettime
	movq	_bba_arp_tmr@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_UIP_ERR_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_UIP_ERR_IF@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UIP_ERR_IF,8,3                 ## @UIP_ERR_IF
	.comm	_UIP_NETIF_FLAG_LINK_UP,4,2     ## @UIP_NETIF_FLAG_LINK_UP
	.comm	_bba_recv_pbufs,8,3             ## @bba_recv_pbufs
	.comm	_bba_arp_tmr,4,2                ## @bba_arp_tmr
	.comm	_UIP_ERR_OK,8,3                 ## @UIP_ERR_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_bba_init                   ; -- Begin function uip_bba_init
	.p2align	2
_uip_bba_init:                          ; @uip_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	x19, x0
	bl	_bba_probe
	tbnz	x0, #63, LBB0_9
; %bb.1:
	bl	_bba_dochallengeresponse
	tbnz	x0, #63, LBB0_9
; %bb.2:
	mov	w20, #0
	mov	w21, #9999
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #500
	bl	_udelay
	bl	___bba_getlink_state_async
	cbnz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w20, #1
	cmp	w20, w21
	mov	x20, x8
	b.lo	LBB0_3
LBB0_5:
	cbz	x0, LBB0_7
; %bb.6:
Lloh0:
	adrp	x8, _UIP_NETIF_FLAG_LINK_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UIP_NETIF_FLAG_LINK_UP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	bl	_uip_netif_setup
	bl	_uip_arp_init
Lloh3:
	adrp	x8, _bba_recv_pbufs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bba_recv_pbufs@GOTPAGEOFF]
Lloh5:
	str	xzr, [x8]
	bl	_gettime
Lloh6:
	adrp	x8, _bba_arp_tmr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _bba_arp_tmr@GOTPAGEOFF]
Lloh8:
	str	w0, [x8]
Lloh9:
	adrp	x8, _UIP_ERR_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UIP_ERR_OK@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _UIP_ERR_IF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UIP_ERR_IF@GOTPAGEOFF]
LBB0_8:
	ldr	x0, [x8]
LBB0_9:
	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 AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_UIP_ERR_IF,8,3                 ; @UIP_ERR_IF
	.comm	_UIP_NETIF_FLAG_LINK_UP,4,2     ; @UIP_NETIF_FLAG_LINK_UP
	.comm	_bba_recv_pbufs,8,3             ; @bba_recv_pbufs
	.comm	_bba_arp_tmr,4,2                ; @bba_arp_tmr
	.comm	_UIP_ERR_OK,8,3                 ; @UIP_ERR_OK
.subsections_via_symbols
