	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cgx_fwi_cmd_generic
_cgx_fwi_cmd_generic:                   ## @cgx_fwi_cmd_generic
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movl	%ecx, %edi
	movq	%rdx, %rsi
	callq	_lmac_pdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_cgx_fwi_cmd_send
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	_EVTREG_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_FIELD_GET
	movq	%rax, %rcx
	movq	_CGX_STAT_FAIL@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.4:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EVTREG_STAT,4,2                ## @EVTREG_STAT
	.comm	_CGX_STAT_FAIL,8,3              ## @CGX_STAT_FAIL
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_cgx_fwi_cmd_generic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cgx_fwi_cmd_generic
_cgx_fwi_cmd_generic:                   ; @cgx_fwi_cmd_generic
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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
	mov	x0, x3
	mov	x1, x2
	bl	_lmac_pdata
	cbz	x0, LBB0_4
; %bb.1:
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_cgx_fwi_cmd_send
	cbnz	w0, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _EVTREG_STAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVTREG_STAT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_FIELD_GET
Lloh3:
	adrp	x8, _CGX_STAT_FAIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CGX_STAT_FAIL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EVTREG_STAT,4,2                ; @EVTREG_STAT
	.comm	_CGX_STAT_FAIL,8,3              ; @CGX_STAT_FAIL
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_cgx_fwi_cmd_generic
.subsections_via_symbols
