	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pch_can_set_optmode
_pch_can_set_optmode:                   ## @pch_can_set_optmode
	.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, %r14
	movq	(%rdi), %rdi
	callq	_ioread32
	movl	8(%r14), %ecx
	movq	_CAN_CTRLMODE_LISTENONLY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	andl	%ecx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_PCH_OPT_SILENT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
LBB0_2:
	orl	%eax, %ebx
	movq	_CAN_CTRLMODE_LOOPBACK@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	je	LBB0_4
## %bb.3:
	movq	_PCH_OPT_LBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_4:
	orl	%ecx, %ebx
	movq	(%r14), %rdi
	addq	$4, %rdi
	movq	_PCH_CTRL_OPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pch_can_bit_set
	movq	(%r14), %rsi
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_iowrite32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ## @CAN_CTRLMODE_LISTENONLY
	.comm	_PCH_OPT_SILENT,4,2             ## @PCH_OPT_SILENT
	.comm	_CAN_CTRLMODE_LOOPBACK,4,2      ## @CAN_CTRLMODE_LOOPBACK
	.comm	_PCH_OPT_LBACK,4,2              ## @PCH_OPT_LBACK
	.comm	_PCH_CTRL_OPT,4,2               ## @PCH_CTRL_OPT
	.no_dead_strip	_pch_can_set_optmode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pch_can_set_optmode
_pch_can_set_optmode:                   ; @pch_can_set_optmode
	.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
	ldr	x0, [x0]
	bl	_ioread32
	ldr	w8, [x19, #8]
Lloh0:
	adrp	x9, _CAN_CTRLMODE_LISTENONLY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CAN_CTRLMODE_LISTENONLY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _PCH_OPT_SILENT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PCH_OPT_SILENT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
	orr	w9, w9, w0
Lloh6:
	adrp	x10, _CAN_CTRLMODE_LOOPBACK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CAN_CTRLMODE_LOOPBACK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _PCH_OPT_LBACK@GOTPAGE
Lloh10:
	ldr	x11, [x11, _PCH_OPT_LBACK@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w20, w9, w8
	ldr	x8, [x19]
	add	x0, x8, #4
Lloh12:
	adrp	x8, _PCH_CTRL_OPT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCH_CTRL_OPT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_pch_can_bit_set
	ldr	x1, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_iowrite32
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ; @CAN_CTRLMODE_LISTENONLY
	.comm	_PCH_OPT_SILENT,4,2             ; @PCH_OPT_SILENT
	.comm	_CAN_CTRLMODE_LOOPBACK,4,2      ; @CAN_CTRLMODE_LOOPBACK
	.comm	_PCH_OPT_LBACK,4,2              ; @PCH_OPT_LBACK
	.comm	_PCH_CTRL_OPT,4,2               ; @PCH_CTRL_OPT
	.no_dead_strip	_pch_can_set_optmode
.subsections_via_symbols
