	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tbs_card_init
_tbs_card_init:                         ## @tbs_card_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.1:
	movq	_GP0_IO@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	$458759, %esi                   ## imm = 0x70007
	callq	_cx_set
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_usleep_range
	movl	(%r14), %edi
	movl	$2, %esi
	callq	_cx_clear
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_usleep_range
	xorl	%ebx, %ebx
	leaq	_tbs_card_init.buf(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movl	$7, %esi
	callq	_cx_clear
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_usleep_range
	movl	(%r14), %edi
	movl	%ebx, %eax
	shrl	$3, %eax
	movl	(%r15,%rax,4), %eax
	movl	%ebx, %ecx
	notb	%cl
	andb	$7, %cl
	movzbl	%cl, %ecx
	xorl	%esi, %esi
	btl	%ecx, %eax
	setb	%sil
	orl	$4, %esi
	callq	_cx_set
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_usleep_range
	incl	%ebx
	cmpl	$72, %ebx
	jne	LBB0_2
## %bb.3:
	movl	(%r14), %edi
	movl	$7, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cx_set                         ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @tbs_card_init.buf
_tbs_card_init.buf:
	.long	224                             ## 0xe0
	.long	6                               ## 0x6
	.long	102                             ## 0x66
	.long	51                              ## 0x33
	.long	101                             ## 0x65
	.long	1                               ## 0x1
	.long	23                              ## 0x17
	.long	6                               ## 0x6
	.long	222                             ## 0xde

	.comm	_GP0_IO,4,2                     ## @GP0_IO
	.no_dead_strip	_tbs_card_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tbs_card_init
_tbs_card_init:                         ; @tbs_card_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
	ldr	w8, [x0]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.1:
Lloh0:
	adrp	x19, _GP0_IO@GOTPAGE
Lloh1:
	ldr	x19, [x19, _GP0_IO@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	w1, #458759
	bl	_cx_set
	mov	w0, #1000
	mov	w1, #10000
	bl	_usleep_range
	ldr	w0, [x19]
	mov	w1, #2
	bl	_cx_clear
	mov	w0, #1000
	mov	w1, #10000
	bl	_usleep_range
	mov	w20, #0
Lloh2:
	adrp	x21, _tbs_card_init.buf@PAGE
Lloh3:
	add	x21, x21, _tbs_card_init.buf@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	mov	w1, #7
	bl	_cx_clear
	mov	w0, #1000
	mov	w1, #10000
	bl	_usleep_range
	ldr	w0, [x19]
	mvn	w8, w20
	lsr	w9, w20, #3
	ldr	w9, [x21, w9, uxtw #2]
	and	w8, w8, #0x7
	lsr	w8, w9, w8
	mov	w1, #4
	bfxil	w1, w8, #0, #1
	bl	_cx_set
	mov	w0, #1000
	mov	w1, #10000
	bl	_usleep_range
	add	w20, w20, #1
	cmp	w20, #72
	b.ne	LBB0_2
; %bb.3:
	ldr	w0, [x19]
	mov	w1, #7
	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	_cx_set
LBB0_4:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @tbs_card_init.buf
_tbs_card_init.buf:
	.long	224                             ; 0xe0
	.long	6                               ; 0x6
	.long	102                             ; 0x66
	.long	51                              ; 0x33
	.long	101                             ; 0x65
	.long	1                               ; 0x1
	.long	23                              ; 0x17
	.long	6                               ; 0x6
	.long	222                             ; 0xde

	.comm	_GP0_IO,4,2                     ; @GP0_IO
	.no_dead_strip	_tbs_card_init
.subsections_via_symbols
