	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_phy_flash_cfg
_set_phy_flash_cfg:                     ## @set_phy_flash_cfg
	.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
	movq	%rcx, %r14
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_rtnl_lock
	movl	(%r15), %eax
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	cmpb	$48, (%rbx)
	jne	LBB0_3
LBB0_2:
	movq	_PHY_MODE_SPECIAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %ebx
	notl	%ebx
	andl	%eax, %ebx
	jmp	LBB0_4
LBB0_3:
	movq	_PHY_MODE_SPECIAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %ebx
LBB0_4:
	xorl	%ebx, %eax
	testl	%ecx, %eax
	je	LBB0_5
## %bb.6:
	movq	8(%r15), %rax
	movq	_STATE_READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movl	16(%r15), %edi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_15:
	xorl	%eax, %eax
	callq	_rtnl_unlock
	testl	%r12d, %r12d
	je	LBB0_17
## %bb.16:
	movl	%r12d, %r14d
	jmp	LBB0_17
LBB0_5:
	xorl	%eax, %eax
	callq	_rtnl_unlock
LBB0_17:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%ebx, (%r15)
	movq	_PHY_MODE_SPECIAL@GOTPCREL(%rip), %r13
	testl	%ebx, (%r13)
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_falcon_stop_nic_stats
LBB0_11:
	movq	%r15, %rdi
	callq	_sfe4001_poweron
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_ef4_reconfigure_port
	movl	%eax, %r12d
LBB0_13:
	testl	%ebx, (%r13)
	jne	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	callq	_falcon_start_nic_stats
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_MODE_SPECIAL,4,2           ## @PHY_MODE_SPECIAL
	.comm	_STATE_READY,8,3                ## @STATE_READY
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_set_phy_flash_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_phy_flash_cfg
_set_phy_flash_cfg:                     ; @set_phy_flash_cfg
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x21, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	bl	_rtnl_lock
	ldr	w8, [x20]
	cbz	x19, LBB0_2
; %bb.1:
	ldrb	w9, [x21]
	cmp	w9, #48
	b.ne	LBB0_3
LBB0_2:
Lloh0:
	adrp	x9, _PHY_MODE_SPECIAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_MODE_SPECIAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bic	w22, w8, w9
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x9, _PHY_MODE_SPECIAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PHY_MODE_SPECIAL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	x22, x9
LBB0_4:
	eor	w8, w22, w8
	tst	w8, w9
	b.eq	LBB0_10
; %bb.5:
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x9, _STATE_READY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _STATE_READY@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	w0, [x20, #16]
	bl	_netif_running
	cbz	x0, LBB0_12
LBB0_7:
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	bl	_rtnl_unlock
	cbz	w21, LBB0_11
; %bb.9:
	mov	w19, w21
	b	LBB0_11
LBB0_10:
	bl	_rtnl_unlock
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	str	w22, [x20]
Lloh12:
	adrp	x23, _PHY_MODE_SPECIAL@GOTPAGE
Lloh13:
	ldr	x23, [x23, _PHY_MODE_SPECIAL@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w22
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_falcon_stop_nic_stats
LBB0_14:
	mov	x0, x20
	bl	_sfe4001_poweron
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.15:
	mov	x0, x20
	bl	_ef4_reconfigure_port
	mov	x21, x0
LBB0_16:
	ldr	w8, [x23]
	tst	w8, w22
	b.ne	LBB0_8
; %bb.17:
	mov	x0, x20
	bl	_falcon_start_nic_stats
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_MODE_SPECIAL,4,2           ; @PHY_MODE_SPECIAL
	.comm	_STATE_READY,8,3                ; @STATE_READY
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_set_phy_flash_cfg
.subsections_via_symbols
