	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ph_connect
_ph_connect:                            ## @ph_connect
	.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, %rbx
	leaq	4(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	movl	$8, %edi
	callq	_DBG
	leaq	8(%rbx), %rdi
	movq	_ST_DOUT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FsmChangeState
	movq	_FFMSK_D@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$252, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_st5481_usb_device_ctrl_msg
	movq	_L1_MODE_HDLC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_st5481_in_mode
	movq	_EP_D_OUT@GOTPCREL(%rip), %rax
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_st5481_usb_pipe_reset
	movq	_GREEN_LED@GOTPCREL(%rip), %rax
	movl	(%rbx), %edx
	orl	(%rax), %edx
	movl	%edx, (%rbx)
	movq	_GPIO_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_st5481_usb_device_ctrl_msg     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_ST_DOUT_NONE,4,2               ## @ST_DOUT_NONE
	.comm	_FFMSK_D,4,2                    ## @FFMSK_D
	.comm	_L1_MODE_HDLC,4,2               ## @L1_MODE_HDLC
	.comm	_EP_D_OUT,4,2                   ## @EP_D_OUT
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_GREEN_LED,4,2                  ## @GREEN_LED
	.comm	_GPIO_OUT,4,2                   ## @GPIO_OUT
	.comm	_LBB,4,2                        ## @LBB
	.comm	_cs,8,3                         ## @cs
	.no_dead_strip	_ph_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ph_connect
_ph_connect:                            ; @ph_connect
	.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
	mov	x19, x0
	add	x20, x0, #4
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #8
	bl	_DBG
	add	x0, x19, #8
Lloh2:
	adrp	x8, _ST_DOUT_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ST_DOUT_NONE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_FsmChangeState
Lloh5:
	adrp	x8, _FFMSK_D@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FFMSK_D@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #252
	mov	x3, #0
	mov	x4, #0
	bl	_st5481_usb_device_ctrl_msg
Lloh8:
	adrp	x8, _L1_MODE_HDLC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _L1_MODE_HDLC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_st5481_in_mode
Lloh11:
	adrp	x8, _EP_D_OUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EP_D_OUT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _USB_DIR_OUT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _USB_DIR_OUT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	bl	_st5481_usb_pipe_reset
Lloh17:
	adrp	x8, _GREEN_LED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GREEN_LED@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w2, w9, w8
	str	w2, [x19]
Lloh20:
	adrp	x8, _GPIO_OUT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GPIO_OUT@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x3, #0
	mov	x4, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_st5481_usb_device_ctrl_msg
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_ST_DOUT_NONE,4,2               ; @ST_DOUT_NONE
	.comm	_FFMSK_D,4,2                    ; @FFMSK_D
	.comm	_L1_MODE_HDLC,4,2               ; @L1_MODE_HDLC
	.comm	_EP_D_OUT,4,2                   ; @EP_D_OUT
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_GREEN_LED,4,2                  ; @GREEN_LED
	.comm	_GPIO_OUT,4,2                   ; @GPIO_OUT
	.comm	_LBB,4,2                        ; @LBB
	.comm	_cs,8,3                         ; @cs
	.no_dead_strip	_ph_connect
.subsections_via_symbols
