	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hsc_tx_set
_hsc_tx_set:                            ## @hsc_tx_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rsi), %rax
	movq	_HSI_MODE_STREAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_HSI_MODE_FRAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_3:
	movl	8(%rsi), %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(%rsi), %rdx
	movq	_HSI_ARB_RR@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rdx
	je	LBB0_8
## %bb.7:
	movq	_HSI_ARB_PRIO@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rdx
	je	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	movups	(%rbx), %xmm0
	movups	16(%rbx), %xmm1
	movaps	%xmm1, -32(%rbp)
	movaps	%xmm0, -48(%rbp)
	movq	%rax, (%rbx)
	movl	%ecx, 8(%rbx)
	movl	24(%rsi), %eax
	movl	%eax, 24(%rbx)
	movq	%rdx, 16(%rbx)
	movq	%rbx, %rdi
	callq	_hsi_setup
	testl	%eax, %eax
	jns	LBB0_10
## %bb.9:
	movaps	-48(%rbp), %xmm0
	movaps	-32(%rbp), %xmm1
	movups	%xmm1, 16(%rbx)
	movups	%xmm0, (%rbx)
	jmp	LBB0_10
	.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_ARB_RR,8,3                 ## @HSI_ARB_RR
	.comm	_HSI_ARB_PRIO,8,3               ## @HSI_ARB_PRIO
	.no_dead_strip	_hsc_tx_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hsc_tx_set
_hsc_tx_set:                            ; @hsc_tx_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _HSI_MODE_STREAM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HSI_MODE_STREAM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _HSI_MODE_FRAME@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HSI_MODE_FRAME@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
; %bb.1:
	ldr	w9, [x1, #8]
Lloh6:
	adrp	x10, _HSC_DEVS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _HSC_DEVS@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w9, #0
	ccmp	w9, w10, #0, ne
	b.gt	LBB0_6
; %bb.2:
	sub	w10, w9, #1
	tst	w9, w10
	b.ne	LBB0_6
; %bb.3:
	ldr	x10, [x1, #16]
Lloh9:
	adrp	x11, _HSI_ARB_RR@GOTPAGE
Lloh10:
	ldr	x11, [x11, _HSI_ARB_RR@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
Lloh12:
	adrp	x12, _HSI_ARB_PRIO@GOTPAGE
Lloh13:
	ldr	x12, [x12, _HSI_ARB_PRIO@GOTPAGEOFF]
Lloh14:
	ldr	x12, [x12]
	cmp	x10, x11
	ccmp	x10, x12, #4, ne
	b.ne	LBB0_6
; %bb.4:
	mov	x19, x0
	ldp	q0, q1, [x0]
	stp	q0, q1, [sp]
	str	x8, [x0]
	str	w9, [x0, #8]
	ldr	w8, [x1, #24]
	str	w8, [x0, #24]
	str	x10, [x0, #16]
	bl	_hsi_setup
	tbz	w0, #31, LBB0_7
; %bb.5:
	ldp	q0, q1, [sp]
	stp	q0, q1, [x19]
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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_ARB_RR,8,3                 ; @HSI_ARB_RR
	.comm	_HSI_ARB_PRIO,8,3               ; @HSI_ARB_PRIO
	.no_dead_strip	_hsc_tx_set
.subsections_via_symbols
