	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pciefd_post_cmd
_pciefd_post_cmd:                       ## @pciefd_post_cmd
	.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	%rdi, %rbx
	addq	$12, %rdi
	callq	_pucan_cmd_get_opcode
	cmpl	$128, %eax
	jne	LBB0_3
## %bb.1:
	movl	(%rbx), %eax
	movq	_CAN_STATE_STOPPED@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	je	LBB0_3
## %bb.2:
	movq	_CANFD_CTL_IEN_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCIEFD_REG_CAN_RX_CTL_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_pciefd_can_writereg
	movq	%rbx, %rdi
	callq	_pciefd_can_clear_tx_dma
	movq	%rbx, %rdi
	callq	_pciefd_can_clear_rx_dma
	movl	8(%rbx), %edi
	movq	_PCIEFD_REG_SYS_VER1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pciefd_sys_readreg
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movl	(%r14), %eax
	movl	%eax, (%rbx)
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAN_STATE_STOPPED,4,2          ## @CAN_STATE_STOPPED
	.comm	_CANFD_CTL_IEN_BIT,4,2          ## @CANFD_CTL_IEN_BIT
	.comm	_PCIEFD_REG_CAN_RX_CTL_CLR,4,2  ## @PCIEFD_REG_CAN_RX_CTL_CLR
	.comm	_PCIEFD_REG_SYS_VER1,4,2        ## @PCIEFD_REG_SYS_VER1
	.no_dead_strip	_pciefd_post_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pciefd_post_cmd
_pciefd_post_cmd:                       ; @pciefd_post_cmd
	.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, x0
	add	x0, x0, #12
	bl	_pucan_cmd_get_opcode
	cmp	w0, #128
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x20, _CAN_STATE_STOPPED@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CAN_STATE_STOPPED@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w8, w9
	b.eq	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _CANFD_CTL_IEN_BIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CANFD_CTL_IEN_BIT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _PCIEFD_REG_CAN_RX_CTL_CLR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCIEFD_REG_CAN_RX_CTL_CLR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_pciefd_can_writereg
	mov	x0, x19
	bl	_pciefd_can_clear_tx_dma
	mov	x0, x19
	bl	_pciefd_can_clear_rx_dma
	ldr	w0, [x19, #8]
Lloh8:
	adrp	x8, _PCIEFD_REG_SYS_VER1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCIEFD_REG_SYS_VER1@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_pciefd_sys_readreg
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_free_irq
	ldr	w8, [x20]
	str	w8, [x19]
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CAN_STATE_STOPPED,4,2          ; @CAN_STATE_STOPPED
	.comm	_CANFD_CTL_IEN_BIT,4,2          ; @CANFD_CTL_IEN_BIT
	.comm	_PCIEFD_REG_CAN_RX_CTL_CLR,4,2  ; @PCIEFD_REG_CAN_RX_CTL_CLR
	.comm	_PCIEFD_REG_SYS_VER1,4,2        ; @PCIEFD_REG_SYS_VER1
	.no_dead_strip	_pciefd_post_cmd
.subsections_via_symbols
