	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hw_get_channel_chan            ## -- Begin function hw_get_channel_chan
	.p2align	4, 0x90
_hw_get_channel_chan:                   ## @hw_get_channel_chan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movl	$0, (%rdx)
LBB0_2:
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.3:
	cmpl	$0, (%rdi)
	jle	LBB0_10
## %bb.4:
	movq	8(%rdi), %rcx
	xorl	%r8d, %r8d
                                        ## implicit-def: $rax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %r9d
	cmpl	%esi, %r9d
	cmoveq	%rcx, %rax
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%esi, %r9d
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rcx), %eax
	movl	%eax, (%rdx)
	movq	%rcx, %rax
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%esi, %r9d
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r8
	movslq	(%rdi), %r9
	addq	$8, %rcx
	cmpq	%r9, %r8
	jl	LBB0_5
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hw_get_channel_chan            ; -- Begin function hw_get_channel_chan
	.p2align	2
_hw_get_channel_chan:                   ; @hw_get_channel_chan
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_2
; %bb.1:
	str	wzr, [x2]
LBB0_2:
	cbz	x0, LBB0_10
; %bb.3:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x9, #0
	ldr	x10, [x0, #8]
                                        ; implicit-def: $x8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	cmp	w11, w1
	csel	x8, x10, x8, eq
	cbz	x2, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x10, #4]
	str	w8, [x2]
	mov	x8, x10
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w11, w1
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	ldrsw	x11, [x0]
	add	x10, x10, #8
	cmp	x9, x11
	b.lt	LBB0_5
LBB0_10:
	mov	x0, #0
	ret
LBB0_11:
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
