	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hsc_rx_set
_hsc_rx_set:                            ## @hsc_rx_set
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	_HSI_MODE_STREAM@GOTPCREL(%rip), %rcx
	movq	_HSI_MODE_FRAME@GOTPCREL(%rip), %r12
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	cmpq	(%r12), %rax
	jne	LBB0_2
LBB0_3:
	movl	8(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.4:
	movq	_HSC_DEVS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jg	LBB0_2
## %bb.5:
	leal	-1(%rcx), %edx
	testl	%edx, %ecx
	jne	LBB0_2
## %bb.6:
	movq	16(%r15), %rdx
	movq	_HSI_FLOW_SYNC@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_8
## %bb.7:
	movq	_HSI_FLOW_PIPE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	16(%r14), %rsi
	movq	%rsi, -48(%rbp)
	movups	(%r14), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	%rax, (%r14)
	movl	%ecx, 8(%r14)
	movq	%rdx, 16(%r14)
	movq	%r14, %rdi
	callq	_hsi_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	(%r15), %rax
	cmpq	(%r12), %rax
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_hsc_break_request
	jmp	LBB0_12
LBB0_9:
	movq	-48(%rbp), %rax
	movq	%rax, 16(%r14)
	movaps	-64(%rbp), %xmm0
	movups	%xmm0, (%r14)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_HSI_MODE_STREAM,8,3            ## @HSI_MODE_STREAM
	.comm	_HSI_MODE_FRAME,8,3             ## @HSI_MODE_FRAME
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HSC_DEVS,4,2                   ## @HSC_DEVS
	.comm	_HSI_FLOW_SYNC,8,3              ## @HSI_FLOW_SYNC
	.comm	_HSI_FLOW_PIPE,8,3              ## @HSI_FLOW_PIPE
	.no_dead_strip	_hsc_rx_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hsc_rx_set
_hsc_rx_set:                            ; @hsc_rx_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x8, [x1]
Lloh0:
	adrp	x9, _HSI_MODE_STREAM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HSI_MODE_STREAM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x22, _HSI_MODE_FRAME@GOTPAGE
Lloh4:
	ldr	x22, [x22, _HSI_MODE_FRAME@GOTPAGEOFF]
	ldr	x10, [x22]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
; %bb.1:
	mov	x20, x1
	ldr	w9, [x1, #8]
Lloh5:
	adrp	x10, _HSC_DEVS@GOTPAGE
Lloh6:
	ldr	x10, [x10, _HSC_DEVS@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w9, #0
	ccmp	w9, w10, #0, ne
	b.gt	LBB0_7
; %bb.2:
	sub	w10, w9, #1
	tst	w9, w10
	b.ne	LBB0_7
; %bb.3:
	ldr	x10, [x20, #16]
Lloh8:
	adrp	x11, _HSI_FLOW_SYNC@GOTPAGE
Lloh9:
	ldr	x11, [x11, _HSI_FLOW_SYNC@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
Lloh11:
	adrp	x12, _HSI_FLOW_PIPE@GOTPAGE
Lloh12:
	ldr	x12, [x12, _HSI_FLOW_PIPE@GOTPAGEOFF]
Lloh13:
	ldr	x12, [x12]
	cmp	x10, x11
	ccmp	x10, x12, #4, ne
	b.ne	LBB0_7
; %bb.4:
	mov	x19, x0
	ldr	q0, [x0]
	str	q0, [sp]
	ldr	x11, [x0, #16]
	str	x11, [sp, #16]
	str	x8, [x0]
	str	w9, [x0, #8]
	str	x10, [x0, #16]
	bl	_hsi_setup
	mov	x21, x0
	tbnz	w0, #31, LBB0_9
; %bb.5:
	ldr	x8, [x20]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_hsc_break_request
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	ldr	q0, [sp]
	str	q0, [x19]
	ldr	x8, [sp, #16]
	str	x8, [x19, #16]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_HSI_MODE_STREAM,8,3            ; @HSI_MODE_STREAM
	.comm	_HSI_MODE_FRAME,8,3             ; @HSI_MODE_FRAME
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HSC_DEVS,4,2                   ; @HSC_DEVS
	.comm	_HSI_FLOW_SYNC,8,3              ; @HSI_FLOW_SYNC
	.comm	_HSI_FLOW_PIPE,8,3              ; @HSI_FLOW_PIPE
	.no_dead_strip	_hsc_rx_set
.subsections_via_symbols
