	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __bba_init
___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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	___bba_reset
	movl	$1, %edi
	callq	_bba_cmd_in8
	movl	%eax, 16(%rbx)
	leaq	12(%rbx), %rsi
	movl	$4, %edi
	movl	$2, %edx
	callq	_bba_cmd_outs
	movl	8(%rbx), %esi
	movl	$5, %edi
	callq	_bba_cmd_out8
	movl	$91, %edi
	callq	_bba_in8
	andl	$-129, %eax
	movl	$91, %edi
	movl	%eax, %esi
	callq	_bba_out8
	movl	$94, %edi
	movl	$1, %esi
	callq	_bba_out8
	movl	$92, %edi
	callq	_bba_in8
	orl	$4, %eax
	movl	$92, %edi
	movl	%eax, %esi
	callq	_bba_out8
	xorl	%eax, %eax
	callq	___bba_recv_init
	movq	_BBA_NAFR_PAR0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movl	$6, %edx
	callq	_bba_ins
	movq	_BBA_IR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$255, %esi
	callq	_bba_out8
	movq	_BBA_IMR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BBA_IMR_FIFOEIM@GOTPCREL(%rip), %rax
	movzbl	(%rax), %esi
	xorl	$255, %esi
	callq	_bba_out8
	movq	_BBA_CMD_IRMASKNONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$2, %edi
	callq	_bba_cmd_out8
	movq	_UIP_ERR_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_UIP_ERR_IF@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UIP_ERR_IF,4,2                 ## @UIP_ERR_IF
	.comm	_BBA_NAFR_PAR0,4,2              ## @BBA_NAFR_PAR0
	.comm	_BBA_IR,4,2                     ## @BBA_IR
	.comm	_BBA_IMR,4,2                    ## @BBA_IMR
	.comm	_BBA_IMR_FIFOEIM,4,2            ## @BBA_IMR_FIFOEIM
	.comm	_BBA_CMD_IRMASKNONE,4,2         ## @BBA_CMD_IRMASKNONE
	.comm	_UIP_ERR_OK,4,2                 ## @UIP_ERR_OK
	.no_dead_strip	___bba_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __bba_init
___bba_init:                            ; @__bba_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	cbz	x19, LBB0_2
; %bb.1:
	bl	___bba_reset
	mov	w0, #1
	bl	_bba_cmd_in8
	str	w0, [x19, #16]
	add	x1, x19, #12
	mov	w0, #4
	mov	w2, #2
	bl	_bba_cmd_outs
	ldr	w1, [x19, #8]
	mov	w0, #5
	bl	_bba_cmd_out8
	mov	w0, #91
	bl	_bba_in8
	and	w1, w0, #0xffffff7f
	mov	w0, #91
	bl	_bba_out8
	mov	w0, #94
	mov	w1, #1
	bl	_bba_out8
	mov	w0, #92
	bl	_bba_in8
	orr	w1, w0, #0x4
	mov	w0, #92
	bl	_bba_out8
	bl	___bba_recv_init
Lloh0:
	adrp	x8, _BBA_NAFR_PAR0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BBA_NAFR_PAR0@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	w2, #6
	bl	_bba_ins
Lloh3:
	adrp	x8, _BBA_IR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BBA_IR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #255
	bl	_bba_out8
Lloh6:
	adrp	x8, _BBA_IMR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BBA_IMR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _BBA_IMR_FIFOEIM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BBA_IMR_FIFOEIM@GOTPAGEOFF]
	ldrb	w8, [x8]
	eor	w1, w8, #0xff
	bl	_bba_out8
Lloh11:
	adrp	x8, _BBA_CMD_IRMASKNONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BBA_CMD_IRMASKNONE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w0, #2
	bl	_bba_cmd_out8
Lloh14:
	adrp	x8, _UIP_ERR_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UIP_ERR_OK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh16:
	adrp	x8, _UIP_ERR_IF@GOTPAGE
Lloh17:
	ldr	x8, [x8, _UIP_ERR_IF@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_UIP_ERR_IF,4,2                 ; @UIP_ERR_IF
	.comm	_BBA_NAFR_PAR0,4,2              ; @BBA_NAFR_PAR0
	.comm	_BBA_IR,4,2                     ; @BBA_IR
	.comm	_BBA_IMR,4,2                    ; @BBA_IMR
	.comm	_BBA_IMR_FIFOEIM,4,2            ; @BBA_IMR_FIFOEIM
	.comm	_BBA_CMD_IRMASKNONE,4,2         ; @BBA_CMD_IRMASKNONE
	.comm	_UIP_ERR_OK,4,2                 ; @UIP_ERR_OK
	.no_dead_strip	___bba_init
.subsections_via_symbols
