	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cgx_fwi_link_change
_cgx_fwi_link_change:                   ## @cgx_fwi_link_change
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_CMDREG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%edx, %edx
	jne	LBB0_1
## %bb.2:
	movq	_CGX_CMD_LINK_BRING_DOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_CGX_CMD_LINK_BRING_UP@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_FIELD_SET
	leaq	-20(%rbp), %rsi
	movl	%eax, %edi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_cgx_fwi_cmd_generic
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMDREG_ID,4,2                  ## @CMDREG_ID
	.comm	_CGX_CMD_LINK_BRING_UP,4,2      ## @CGX_CMD_LINK_BRING_UP
	.comm	_CGX_CMD_LINK_BRING_DOWN,4,2    ## @CGX_CMD_LINK_BRING_DOWN
	.no_dead_strip	_cgx_fwi_link_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cgx_fwi_link_change
_cgx_fwi_link_change:                   ; @cgx_fwi_link_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CMDREG_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMDREG_ID@GOTPAGEOFF]
Lloh2:
	adrp	x9, _CGX_CMD_LINK_BRING_DOWN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CGX_CMD_LINK_BRING_DOWN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _CGX_CMD_LINK_BRING_UP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CGX_CMD_LINK_BRING_UP@GOTPAGEOFF]
	cmp	w2, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	w2, #0
	bl	_FIELD_SET
	add	x1, sp, #12
	mov	x2, x20
	mov	x3, x19
	bl	_cgx_fwi_cmd_generic
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CMDREG_ID,4,2                  ; @CMDREG_ID
	.comm	_CGX_CMD_LINK_BRING_UP,4,2      ; @CGX_CMD_LINK_BRING_UP
	.comm	_CGX_CMD_LINK_BRING_DOWN,4,2    ; @CGX_CMD_LINK_BRING_DOWN
	.no_dead_strip	_cgx_fwi_link_change
.subsections_via_symbols
