	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function port_cfg_change
_port_cfg_change:                       ## @port_cfg_change
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_HALF_DUPLEX_SIGNAL_BUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_6
## %bb.1:
	movq	_PAUSE_FLOW_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rdi)
	je	LBB0_2
LBB0_6:
	popq	%rbp
	retq
LBB0_2:
	movl	16(%rdi), %ecx
	cmpl	$1, (%rdx)
	movl	%ecx, %eax
	jne	LBB0_4
## %bb.3:
	movq	_DMA_TX_FLOW_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%ecx, %eax
	movl	%eax, 16(%rdi)
LBB0_4:
	cmpq	$0, 24(%rdi)
	je	LBB0_6
## %bb.5:
	cmpl	%eax, %ecx
	je	LBB0_6
## %bb.7:
	movq	_KS_DMA_TX_CTRL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	8(%rdi), %rsi
	movl	%eax, %edi
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HALF_DUPLEX_SIGNAL_BUG,4,2     ## @HALF_DUPLEX_SIGNAL_BUG
	.comm	_PAUSE_FLOW_CTRL,4,2            ## @PAUSE_FLOW_CTRL
	.comm	_DMA_TX_FLOW_ENABLE,4,2         ## @DMA_TX_FLOW_ENABLE
	.comm	_KS_DMA_TX_CTRL,8,3             ## @KS_DMA_TX_CTRL
	.no_dead_strip	_port_cfg_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function port_cfg_change
_port_cfg_change:                       ; @port_cfg_change
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _HALF_DUPLEX_SIGNAL_BUG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HALF_DUPLEX_SIGNAL_BUG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x0, #4]
Lloh3:
	adrp	x9, _PAUSE_FLOW_CTRL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAUSE_FLOW_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
	ret
LBB0_3:
	ldr	w9, [x0, #16]
	ldr	w10, [x2]
	mov	x8, x9
	cmp	w10, #1
	b.ne	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _DMA_TX_FLOW_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_TX_FLOW_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bic	w8, w9, w8
	str	w8, [x0, #16]
LBB0_5:
	ldr	x10, [x0, #24]
	cbz	x10, LBB0_2
; %bb.6:
	cmp	w9, w8
	b.eq	LBB0_2
; %bb.7:
	ldr	x9, [x0, #8]
Lloh9:
	adrp	x10, _KS_DMA_TX_CTRL@GOTPAGE
Lloh10:
	ldr	x10, [x10, _KS_DMA_TX_CTRL@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	add	x1, x10, x9
	mov	x0, x8
	b	_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HALF_DUPLEX_SIGNAL_BUG,4,2     ; @HALF_DUPLEX_SIGNAL_BUG
	.comm	_PAUSE_FLOW_CTRL,4,2            ; @PAUSE_FLOW_CTRL
	.comm	_DMA_TX_FLOW_ENABLE,4,2         ; @DMA_TX_FLOW_ENABLE
	.comm	_KS_DMA_TX_CTRL,8,3             ; @KS_DMA_TX_CTRL
	.no_dead_strip	_port_cfg_change
.subsections_via_symbols
