	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6341_port_set_cmode_writable
_mv88e6341_port_set_cmode_writable:     ## @mv88e6341_port_set_cmode_writable
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$5, %esi
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	(%rax), %ebx
	addl	$5, %ebx
	leaq	-20(%rbp), %r8
	movl	$7, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_mv88e6xxx_port_hidden_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_MV88E6341_PORT_RESERVED_1A_FORCE_CMODE@GOTPCREL(%rip), %rax
	movq	_MV88E6341_PORT_RESERVED_1A_SGMII_AN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	-20(%rbp), %r8d
	movl	%r8d, %edx
	notl	%edx
	movl	$0, %eax
	testl	%edx, %ecx
	je	LBB0_5
## %bb.4:
	orl	%ecx, %r8d
	movl	%r8d, -20(%rbp)
	movq	%r14, %rdi
	movl	$7, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_mv88e6xxx_port_hidden_write
	jmp	LBB0_5
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_MV88E6341_PORT_RESERVED_1A_FORCE_CMODE,4,2 ## @MV88E6341_PORT_RESERVED_1A_FORCE_CMODE
	.comm	_MV88E6341_PORT_RESERVED_1A_SGMII_AN,4,2 ## @MV88E6341_PORT_RESERVED_1A_SGMII_AN
	.no_dead_strip	_mv88e6341_port_set_cmode_writable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6341_port_set_cmode_writable
_mv88e6341_port_set_cmode_writable:     ; @mv88e6341_port_set_cmode_writable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w1, #5
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w8, [x8]
	add	w20, w8, #5
	add	x4, sp, #12
	mov	w1, #7
	mov	x2, x20
	mov	w3, #0
	bl	_mv88e6xxx_port_hidden_read
	cbnz	w0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _MV88E6341_PORT_RESERVED_1A_FORCE_CMODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MV88E6341_PORT_RESERVED_1A_FORCE_CMODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MV88E6341_PORT_RESERVED_1A_SGMII_AN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MV88E6341_PORT_RESERVED_1A_SGMII_AN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	bics	wzr, w8, w9
	b.ne	LBB0_6
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	orr	w4, w9, w8
	str	w4, [sp, #12]
	mov	x0, x19
	mov	w1, #7
	mov	x2, x20
	mov	w3, #0
	bl	_mv88e6xxx_port_hidden_write
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_MV88E6341_PORT_RESERVED_1A_FORCE_CMODE,4,2 ; @MV88E6341_PORT_RESERVED_1A_FORCE_CMODE
	.comm	_MV88E6341_PORT_RESERVED_1A_SGMII_AN,4,2 ; @MV88E6341_PORT_RESERVED_1A_SGMII_AN
	.no_dead_strip	_mv88e6341_port_set_cmode_writable
.subsections_via_symbols
