	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st5481_in_mode                 ## -- Begin function st5481_in_mode
	.p2align	4, 0x90
_st5481_in_mode:                        ## @st5481_in_mode
	.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
	cmpl	%esi, (%rdi)
	jne	LBB0_1
## %bb.8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movl	%esi, (%rdi)
	movq	24(%rdi), %rax
	movl	(%rax), %edi
	callq	_usb_unlink_urb
	movq	24(%rbx), %rax
	movl	4(%rax), %edi
	callq	_usb_unlink_urb
	movslq	(%rbx), %rax
	movq	_L1_MODE_NULL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.7:
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_st5481_usb_device_ctrl_msg     ## TAILCALL
LBB0_2:
	movq	_L1_MODE_TRANS@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_6
## %bb.3:
	movq	_HDLC_BITREVERSE@GOTPCREL(%rip), %rcx
	movq	_L1_MODE_HDLC_56K@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	%rax, (%rdx)
	jne	LBB0_5
## %bb.4:
	movq	_HDLC_56KBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_5:
	orl	(%rcx), %esi
	leaq	20(%rbx), %rdi
	callq	_isdnhdlc_rcv_init
LBB0_6:
	movl	8(%rbx), %edi
	movl	16(%rbx), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_st5481_usb_pipe_reset
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	movl	12(%rbx), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_st5481_usb_device_ctrl_msg
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_st5481_start_rcv               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_L1_MODE_NULL,4,2               ## @L1_MODE_NULL
	.comm	_L1_MODE_TRANS,8,3              ## @L1_MODE_TRANS
	.comm	_HDLC_BITREVERSE,4,2            ## @HDLC_BITREVERSE
	.comm	_L1_MODE_HDLC_56K,8,3           ## @L1_MODE_HDLC_56K
	.comm	_HDLC_56KBIT,4,2                ## @HDLC_56KBIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st5481_in_mode                 ; -- Begin function st5481_in_mode
	.p2align	2
_st5481_in_mode:                        ; @st5481_in_mode
	.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	w8, [x0]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	str	w1, [x0]
	ldr	x8, [x0, #24]
	ldr	w0, [x8]
	bl	_usb_unlink_urb
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #4]
	bl	_usb_unlink_urb
	ldrsw	x8, [x19]
Lloh0:
	adrp	x9, _L1_MODE_NULL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _L1_MODE_NULL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	ldp	w1, w0, [x19, #4]
	mov	w2, #0
	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
LBB0_4:
Lloh3:
	adrp	x9, _L1_MODE_TRANS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _L1_MODE_TRANS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.eq	LBB0_6
; %bb.5:
Lloh6:
	adrp	x9, _HDLC_BITREVERSE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HDLC_BITREVERSE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _L1_MODE_HDLC_56K@GOTPAGE
Lloh10:
	ldr	x10, [x10, _L1_MODE_HDLC_56K@GOTPAGEOFF]
Lloh11:
	adrp	x11, _HDLC_56KBIT@GOTPAGE
Lloh12:
	ldr	x11, [x11, _HDLC_56KBIT@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
Lloh14:
	ldr	w11, [x11]
	cmp	x10, x8
	csel	w8, w11, wzr, eq
	orr	w1, w8, w9
	add	x0, x19, #20
	bl	_isdnhdlc_rcv_init
LBB0_6:
	ldr	w0, [x19, #8]
	ldr	w1, [x19, #16]
	mov	x2, #0
	mov	x3, #0
	bl	_st5481_usb_pipe_reset
	ldp	w1, w0, [x19, #4]
	ldr	w2, [x19, #12]
	mov	x3, #0
	mov	x4, #0
	bl	_st5481_usb_device_ctrl_msg
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_st5481_start_rcv
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_L1_MODE_NULL,4,2               ; @L1_MODE_NULL
	.comm	_L1_MODE_TRANS,8,3              ; @L1_MODE_TRANS
	.comm	_HDLC_BITREVERSE,4,2            ; @HDLC_BITREVERSE
	.comm	_L1_MODE_HDLC_56K,8,3           ; @L1_MODE_HDLC_56K
	.comm	_HDLC_56KBIT,4,2                ; @HDLC_56KBIT
.subsections_via_symbols
