	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b53_force_port_config
_b53_force_port_config:                 ## @b53_force_port_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movq	%rdi, %r12
	cmpl	%esi, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	_B53_PORT_OVERRIDE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_PORT_OVERRIDE_EN@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movl	%esi, %edi
	callq	_B53_GMII_PORT_OVERRIDE_CTRL
	movl	%eax, %r14d
	movq	_GMII_PO_EN@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	movq	_B53_CTRL_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_b53_read8
	orl	-44(%rbp), %ebx
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movq	_PORT_OVERRIDE_FULL_DUPLEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	notl	%edx
	andl	%ebx, %edx
	orl	%ecx, %ebx
	cmpl	%r15d, (%rax)
	cmovnel	%edx, %ebx
	movl	%ebx, -44(%rbp)
	cmpl	$129, %r13d
	jg	LBB0_13
## %bb.4:
	cmpl	$128, %r13d
	je	LBB0_16
## %bb.5:
	cmpl	$129, %r13d
	jne	LBB0_18
## %bb.6:
	movq	_PORT_OVERRIDE_SPEED_100M@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_13:
	cmpl	$130, %r13d
	je	LBB0_17
## %bb.14:
	cmpl	$2000, %r13d                    ## imm = 0x7D0
	jne	LBB0_18
## %bb.15:
	movq	_PORT_OVERRIDE_SPEED_2000M@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_16:
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	_B53_CTRL_PAGE@GOTPCREL(%rip), %rdx
	movq	_PORT_OVERRIDE_SPEED_1000M@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, -44(%rbp)
	jmp	LBB0_8
LBB0_18:
	movl	4(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_dev_err
	jmp	LBB0_19
LBB0_17:
	movq	_PORT_OVERRIDE_SPEED_10M@GOTPCREL(%rip), %rax
LBB0_7:
	orl	(%rax), %ebx
	movl	%ebx, -44(%rbp)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	_B53_CTRL_PAGE@GOTPCREL(%rip), %rdx
LBB0_8:
	movq	_MLO_PAUSE_RX@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_10
## %bb.9:
	movq	_PORT_OVERRIDE_RX_FLOW@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, -44(%rbp)
LBB0_10:
	movq	_MLO_PAUSE_TX@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_12
## %bb.11:
	movq	_PORT_OVERRIDE_TX_FLOW@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, -44(%rbp)
LBB0_12:
	movl	(%rdx), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	callq	_b53_write8
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B53_PORT_OVERRIDE_CTRL,4,2     ## @B53_PORT_OVERRIDE_CTRL
	.comm	_PORT_OVERRIDE_EN,4,2           ## @PORT_OVERRIDE_EN
	.comm	_GMII_PO_EN,4,2                 ## @GMII_PO_EN
	.comm	_B53_CTRL_PAGE,4,2              ## @B53_CTRL_PAGE
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_PORT_OVERRIDE_FULL_DUPLEX,4,2  ## @PORT_OVERRIDE_FULL_DUPLEX
	.comm	_PORT_OVERRIDE_SPEED_2000M,4,2  ## @PORT_OVERRIDE_SPEED_2000M
	.comm	_PORT_OVERRIDE_SPEED_1000M,4,2  ## @PORT_OVERRIDE_SPEED_1000M
	.comm	_PORT_OVERRIDE_SPEED_100M,4,2   ## @PORT_OVERRIDE_SPEED_100M
	.comm	_PORT_OVERRIDE_SPEED_10M,4,2    ## @PORT_OVERRIDE_SPEED_10M
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown speed: %d\n"

	.comm	_MLO_PAUSE_RX,4,2               ## @MLO_PAUSE_RX
	.comm	_PORT_OVERRIDE_RX_FLOW,4,2      ## @PORT_OVERRIDE_RX_FLOW
	.comm	_MLO_PAUSE_TX,4,2               ## @MLO_PAUSE_TX
	.comm	_PORT_OVERRIDE_TX_FLOW,4,2      ## @PORT_OVERRIDE_TX_FLOW
	.no_dead_strip	_b53_force_port_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b53_force_port_config
_b53_force_port_config:                 ; @b53_force_port_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x23, x3
	mov	x22, x2
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _B53_PORT_OVERRIDE_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B53_PORT_OVERRIDE_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _PORT_OVERRIDE_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PORT_OVERRIDE_EN@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x0, x1
	bl	_B53_GMII_PORT_OVERRIDE_CTRL
	mov	x20, x0
Lloh5:
	adrp	x8, _GMII_PO_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GMII_PO_EN@GOTPAGEOFF]
LBB0_3:
	ldr	w25, [x8]
Lloh7:
	adrp	x24, _B53_CTRL_PAGE@GOTPAGE
Lloh8:
	ldr	x24, [x24, _B53_CTRL_PAGE@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x3, sp, #12
	mov	x0, x19
	mov	x2, x20
	bl	_b53_read8
	ldr	w8, [sp, #12]
	orr	w8, w8, w25
Lloh9:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _PORT_OVERRIDE_FULL_DUPLEX@GOTPAGE
Lloh13:
	ldr	x10, [x10, _PORT_OVERRIDE_FULL_DUPLEX@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	bic	w11, w8, w10
	orr	w8, w10, w8
	cmp	w9, w23
	csel	w8, w8, w11, eq
	str	w8, [sp, #12]
	cmp	w22, #129
	b.gt	LBB0_7
; %bb.4:
	cmp	w22, #128
	b.eq	LBB0_10
; %bb.5:
	cmp	w22, #129
	b.ne	LBB0_11
; %bb.6:
Lloh15:
	adrp	x9, _PORT_OVERRIDE_SPEED_100M@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PORT_OVERRIDE_SPEED_100M@GOTPAGEOFF]
	b	LBB0_13
LBB0_7:
	cmp	w22, #130
	b.eq	LBB0_12
; %bb.8:
	cmp	w22, #2000
	b.ne	LBB0_11
; %bb.9:
Lloh17:
	adrp	x9, _PORT_OVERRIDE_SPEED_2000M@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PORT_OVERRIDE_SPEED_2000M@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_10:
Lloh20:
	adrp	x9, _PORT_OVERRIDE_SPEED_1000M@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PORT_OVERRIDE_SPEED_1000M@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w3, w8, w9
	b	LBB0_14
LBB0_11:
	ldr	w0, [x19, #4]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	b	LBB0_19
LBB0_12:
Lloh25:
	adrp	x9, _PORT_OVERRIDE_SPEED_10M@GOTPAGE
Lloh26:
	ldr	x9, [x9, _PORT_OVERRIDE_SPEED_10M@GOTPAGEOFF]
LBB0_13:
	ldr	w9, [x9]
	orr	w3, w9, w8
LBB0_14:
	str	w3, [sp, #12]
Lloh27:
	adrp	x8, _MLO_PAUSE_RX@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MLO_PAUSE_RX@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_16
; %bb.15:
Lloh30:
	adrp	x8, _PORT_OVERRIDE_RX_FLOW@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PORT_OVERRIDE_RX_FLOW@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	orr	w3, w3, w8
	str	w3, [sp, #12]
LBB0_16:
Lloh33:
	adrp	x8, _MLO_PAUSE_TX@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MLO_PAUSE_TX@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_18
; %bb.17:
Lloh36:
	adrp	x8, _PORT_OVERRIDE_TX_FLOW@GOTPAGE
Lloh37:
	ldr	x8, [x8, _PORT_OVERRIDE_TX_FLOW@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	orr	w3, w3, w8
	str	w3, [sp, #12]
LBB0_18:
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x20
	bl	_b53_write8
LBB0_19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_B53_PORT_OVERRIDE_CTRL,4,2     ; @B53_PORT_OVERRIDE_CTRL
	.comm	_PORT_OVERRIDE_EN,4,2           ; @PORT_OVERRIDE_EN
	.comm	_GMII_PO_EN,4,2                 ; @GMII_PO_EN
	.comm	_B53_CTRL_PAGE,4,2              ; @B53_CTRL_PAGE
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_PORT_OVERRIDE_FULL_DUPLEX,4,2  ; @PORT_OVERRIDE_FULL_DUPLEX
	.comm	_PORT_OVERRIDE_SPEED_2000M,4,2  ; @PORT_OVERRIDE_SPEED_2000M
	.comm	_PORT_OVERRIDE_SPEED_1000M,4,2  ; @PORT_OVERRIDE_SPEED_1000M
	.comm	_PORT_OVERRIDE_SPEED_100M,4,2   ; @PORT_OVERRIDE_SPEED_100M
	.comm	_PORT_OVERRIDE_SPEED_10M,4,2    ; @PORT_OVERRIDE_SPEED_10M
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown speed: %d\n"

	.comm	_MLO_PAUSE_RX,4,2               ; @MLO_PAUSE_RX
	.comm	_PORT_OVERRIDE_RX_FLOW,4,2      ; @PORT_OVERRIDE_RX_FLOW
	.comm	_MLO_PAUSE_TX,4,2               ; @MLO_PAUSE_TX
	.comm	_PORT_OVERRIDE_TX_FLOW,4,2      ; @PORT_OVERRIDE_TX_FLOW
	.no_dead_strip	_b53_force_port_config
.subsections_via_symbols
