	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hsi_get_channel_id_by_name     ## -- Begin function hsi_get_channel_id_by_name
	.p2align	4, 0x90
_hsi_get_channel_id_by_name:            ## @hsi_get_channel_id_by_name
	.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	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rdi, %r15
	cmpl	$0, (%rdi)
	jle	LBB0_8
## %bb.2:
	movq	%rsi, %r14
	movl	4(%rax), %edi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rcx), %rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15), %rax
	movl	12(%rax,%rcx,8), %edi
	movq	%r14, %rsi
	callq	_strcmp
	movq	%rbx, %rcx
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_4
LBB0_11:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_8:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	movq	8(%r15), %rax
	movl	(%rax,%rbx,8), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ENXIO,4,2                      ## @ENXIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hsi_get_channel_id_by_name     ; -- Begin function hsi_get_channel_id_by_name
	.p2align	2
_hsi_get_channel_id_by_name:            ; @hsi_get_channel_id_by_name
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x20, x1
	ldr	w0, [x8, #4]
	bl	_strcmp
	mov	x21, #0
	cbz	w0, LBB0_6
; %bb.3:
	mov	w22, #12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.ge	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x22]
	mov	x1, x20
	bl	_strcmp
	add	x22, x22, #8
	cbnz	w0, LBB0_4
LBB0_6:
	ldr	x8, [x19, #8]
	lsl	x9, x21, #3
	ldr	w0, [x8, x9]
	b	LBB0_10
LBB0_7:
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh2:
	adrp	x8, _ENXIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ENXIO,4,2                      ; @ENXIO
.subsections_via_symbols
