	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_update_link_state       ## -- Begin function ocrdma_update_link_state
	.p2align	4, 0x90
_ocrdma_update_link_state:              ## @ocrdma_update_link_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	movq	_OCRDMA_FLAGS_LINK_STATUS_INIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_1
## %bb.3:
	testl	%esi, %esi
	jne	LBB0_4
## %bb.5:
	popq	%rbp
	jmp	_ocrdma_dispatch_port_error     ## TAILCALL
LBB0_1:
	orl	%eax, %ecx
	movl	%ecx, (%rdi)
	testl	%esi, %esi
	je	LBB0_2
LBB0_4:
	popq	%rbp
	jmp	_ocrdma_dispatch_port_active    ## TAILCALL
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCRDMA_FLAGS_LINK_STATUS_INIT,4,2 ## @OCRDMA_FLAGS_LINK_STATUS_INIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_update_link_state       ; -- Begin function ocrdma_update_link_state
	.p2align	2
_ocrdma_update_link_state:              ; @ocrdma_update_link_state
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _OCRDMA_FLAGS_LINK_STATUS_INIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OCRDMA_FLAGS_LINK_STATUS_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	cbnz	w1, LBB0_4
; %bb.2:
	b	_ocrdma_dispatch_port_error
LBB0_3:
	orr	w8, w9, w8
	str	w8, [x0]
	cbz	w1, LBB0_5
LBB0_4:
	b	_ocrdma_dispatch_port_active
LBB0_5:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OCRDMA_FLAGS_LINK_STATUS_INIT,4,2 ; @OCRDMA_FLAGS_LINK_STATUS_INIT
.subsections_via_symbols
