	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __GX_SetChanCntrl
___GX_SetChanCntrl:                     ## @__GX_SetChanCntrl
	.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	___gx@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %edi
	testl	$16777216, %edi                 ## imm = 0x1000000
	je	LBB0_2
## %bb.1:
	movl	4(%rax), %edi
	movl	$4, %esi
	movl	$3, %edx
	callq	__SHIFTR
	movl	$4105, %edi                     ## imm = 0x1009
	movl	%eax, %esi
	callq	_GX_LOAD_XF_REG
	movq	(%r14), %rax
	movl	(%rax), %edi
LBB0_2:
	movl	$12, %esi
	movl	$4, %edx
	callq	__SHIFTR
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %eax
	sarl	%eax
	incq	%rbx
	cmpl	$1, %r15d
	movl	%eax, %r15d
	jbe	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, %r15b
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	4110(%rbx), %rdi
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movl	(%rax,%rbx,4), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_GX_LOAD_XF_REG
	jmp	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___gx,8,3                       ## @__gx
	.no_dead_strip	___GX_SetChanCntrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __GX_SetChanCntrl
___GX_SetChanCntrl:                     ; @__GX_SetChanCntrl
	.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
Lloh0:
	adrp	x20, ___gx@GOTPAGE
Lloh1:
	ldr	x20, [x20, ___gx@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w0, [x8]
	tbz	w0, #24, LBB0_2
; %bb.1:
	ldr	w0, [x8, #4]
	mov	w1, #4
	mov	w2, #3
	bl	__SHIFTR
	mov	x1, x0
	mov	w0, #4105
	bl	_GX_LOAD_XF_REG
	ldr	x8, [x20]
	ldr	w0, [x8]
LBB0_2:
	mov	w1, #12
	mov	w2, #4
	bl	__SHIFTR
	cbz	w0, LBB0_7
; %bb.3:
	mov	x19, x0
	mov	x21, #0
	mov	w22, #4110
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	asr	w8, w19, #1
	add	x21, x21, #1
	cmp	w19, #1
	mov	x19, x8
	b.ls	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w19, #0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x21, x22
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, x21, lsl #2]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_GX_LOAD_XF_REG
	b	LBB0_4
LBB0_7:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	___gx,8,3                       ; @__gx
	.no_dead_strip	___GX_SetChanCntrl
.subsections_via_symbols
