	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9005_ts_bus_ctrl
_af9005_ts_bus_ctrl:                    ## @af9005_ts_bus_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movl	4(%rax), %ecx
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	incl	%ecx
	movl	%ecx, 4(%rax)
	jmp	LBB0_4
LBB0_2:
	decl	%ecx
	movl	%ecx, 4(%rax)
	jne	LBB0_4
## %bb.3:
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_af9005_led_control
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_af9005_ts_bus_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function af9005_ts_bus_ctrl
_af9005_ts_bus_ctrl:                    ; @af9005_ts_bus_ctrl
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
	ldr	w9, [x8, #4]
	cbz	w1, LBB0_2
; %bb.1:
	add	w9, w9, #1
	str	w9, [x8, #4]
	b	LBB0_4
LBB0_2:
	subs	w9, w9, #1
	str	w9, [x8, #4]
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_af9005_led_control
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_af9005_ts_bus_ctrl
.subsections_via_symbols
