	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st5481_setup_d                 ## -- Begin function st5481_setup_d
	.p2align	4, 0x90
_st5481_setup_d:                        ## @st5481_setup_d
	.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
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_DBG
	movq	%r14, %rdi
	callq	_st5481_setup_d_out
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_MAX_DFRAME_LEN_L1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%r14)
	movq	_NUM_ISO_PACKETS_D@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%r14)
	movq	_SIZE_ISO_PACKETS_D_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%r14)
	movq	_EP_D_IN@GOTPCREL(%rip), %rax
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	72(%r14), %rdi
	movl	%ecx, 72(%r14)
	movq	_IN_D_COUNTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%r14)
	movq	%r14, 88(%r14)
	leaq	112(%r14), %rax
	movq	%rax, 80(%r14)
	callq	_st5481_setup_in
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_st5481_release_d_out
	jmp	LBB0_4
LBB0_2:
	leaq	40(%r14), %rdi
	movq	_l1fsm@GOTPCREL(%rip), %rax
	movq	%rax, 64(%r14)
	movq	_ST_L1_F3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
	movq	_st5481_debug@GOTPCREL(%rip), %r15
	movl	$256, %ebx                      ## imm = 0x100
	movl	(%r15), %eax
	andl	%ebx, %eax
	movl	%eax, 40(%r14)
	movq	%r14, 48(%r14)
	movq	_l1m_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r14)
	leaq	32(%r14), %rsi
	callq	_FsmInitTimer
	movq	_dout_fsm@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	movq	_ST_DOUT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	andl	(%r15), %ebx
	movl	%ebx, (%r14)
	movq	%r14, 8(%r14)
	movq	_dout_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_MAX_DFRAME_LEN_L1,4,2          ## @MAX_DFRAME_LEN_L1
	.comm	_NUM_ISO_PACKETS_D,4,2          ## @NUM_ISO_PACKETS_D
	.comm	_SIZE_ISO_PACKETS_D_IN,4,2      ## @SIZE_ISO_PACKETS_D_IN
	.comm	_EP_D_IN,4,2                    ## @EP_D_IN
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_IN_D_COUNTER,4,2               ## @IN_D_COUNTER
	.comm	_l1fsm,4,2                      ## @l1fsm
	.comm	_ST_L1_F3,4,2                   ## @ST_L1_F3
	.comm	_st5481_debug,4,2               ## @st5481_debug
	.comm	_l1m_debug,4,2                  ## @l1m_debug
	.comm	_dout_fsm,4,2                   ## @dout_fsm
	.comm	_ST_DOUT_NONE,4,2               ## @ST_DOUT_NONE
	.comm	_dout_debug,4,2                 ## @dout_debug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st5481_setup_d                 ; -- Begin function st5481_setup_d
	.p2align	2
_st5481_setup_d:                        ; @st5481_setup_d
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_DBG
	mov	x0, x19
	bl	_st5481_setup_d_out
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _MAX_DFRAME_LEN_L1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_DFRAME_LEN_L1@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _NUM_ISO_PACKETS_D@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NUM_ISO_PACKETS_D@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #104]
Lloh8:
	adrp	x8, _SIZE_ISO_PACKETS_D_IN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIZE_ISO_PACKETS_D_IN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _EP_D_IN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EP_D_IN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _USB_DIR_IN@GOTPAGE
Lloh15:
	ldr	x10, [x10, _USB_DIR_IN@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w9, w10, w9
	mov	x0, x19
	str	w9, [x0, #72]!
Lloh17:
	adrp	x9, _IN_D_COUNTER@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IN_D_COUNTER@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #96]
	add	x8, x19, #112
	stp	x8, x19, [x19, #80]
	bl	_st5481_setup_in
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_st5481_release_d_out
	b	LBB0_4
LBB0_3:
Lloh20:
	adrp	x8, _l1fsm@GOTPAGE
Lloh21:
	ldr	x8, [x8, _l1fsm@GOTPAGEOFF]
	str	x8, [x19, #64]
Lloh22:
	adrp	x8, _ST_L1_F3@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ST_L1_F3@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x21, _st5481_debug@GOTPAGE
Lloh26:
	ldr	x21, [x21, _st5481_debug@GOTPAGEOFF]
	str	w8, [x19, #56]
	ldr	w8, [x21]
	and	w8, w8, #0x100
	mov	x0, x19
	str	w8, [x0, #40]!
	str	x19, [x19, #48]
Lloh27:
	adrp	x8, _l1m_debug@GOTPAGE
Lloh28:
	ldr	x8, [x8, _l1m_debug@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [x19, #44]
	add	x1, x19, #32
	bl	_FsmInitTimer
Lloh30:
	adrp	x8, _dout_fsm@GOTPAGE
Lloh31:
	ldr	x8, [x8, _dout_fsm@GOTPAGEOFF]
	str	x8, [x19, #24]
Lloh32:
	adrp	x8, _ST_DOUT_NONE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ST_DOUT_NONE@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	w8, [x21]
	and	w8, w8, #0x100
	str	w8, [x19]
	str	x19, [x19, #8]
Lloh35:
	adrp	x8, _dout_debug@GOTPAGE
Lloh36:
	ldr	x8, [x8, _dout_debug@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_4:
	mov	x0, x20
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_MAX_DFRAME_LEN_L1,4,2          ; @MAX_DFRAME_LEN_L1
	.comm	_NUM_ISO_PACKETS_D,4,2          ; @NUM_ISO_PACKETS_D
	.comm	_SIZE_ISO_PACKETS_D_IN,4,2      ; @SIZE_ISO_PACKETS_D_IN
	.comm	_EP_D_IN,4,2                    ; @EP_D_IN
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_IN_D_COUNTER,4,2               ; @IN_D_COUNTER
	.comm	_l1fsm,4,2                      ; @l1fsm
	.comm	_ST_L1_F3,4,2                   ; @ST_L1_F3
	.comm	_st5481_debug,4,2               ; @st5481_debug
	.comm	_l1m_debug,4,2                  ; @l1m_debug
	.comm	_dout_fsm,4,2                   ; @dout_fsm
	.comm	_ST_DOUT_NONE,4,2               ; @ST_DOUT_NONE
	.comm	_dout_debug,4,2                 ; @dout_debug
.subsections_via_symbols
