	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_b_core_phy_clk
_brcms_b_core_phy_clk:                  ## @brcms_b_core_phy_clk
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	4(%rdi), %edx
	movl	8(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	callq	_brcms_dbg_info
	movl	%ebx, (%r14)
	movq	_OFF@GOTPCREL(%rip), %rcx
	movq	_SICF_PRST@GOTPCREL(%rip), %r12
	movq	_SICF_FGC@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	(%r12), %edx
	orl	%eax, %edx
	cmpl	%ebx, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_SICF_GMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%edx, %esi
	movq	%r14, %rdi
	callq	_brcms_b_core_ioctl
	movl	$1, %edi
	callq	_udelay
	movl	(%r12), %edx
	movl	(%r15), %esi
	orl	%edx, %esi
	movq	%r14, %rdi
	jmp	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	movl	%edx, %esi
	movl	%eax, %edx
	callq	_brcms_b_core_ioctl
	movl	$1, %edi
	callq	_udelay
	movl	(%r15), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
LBB0_3:
	callq	_brcms_b_core_ioctl
	movl	$1, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wl%d: clk %d\n"

	.comm	_OFF,4,2                        ## @OFF
	.comm	_SICF_PRST,4,2                  ## @SICF_PRST
	.comm	_SICF_FGC,4,2                   ## @SICF_FGC
	.comm	_SICF_GMODE,4,2                 ## @SICF_GMODE
	.no_dead_strip	_brcms_b_core_phy_clk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_b_core_phy_clk
_brcms_b_core_phy_clk:                  ; @brcms_b_core_phy_clk
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
	ldr	w2, [x19, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_brcms_dbg_info
	str	w20, [x19]
Lloh2:
	adrp	x8, _OFF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OFF@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
Lloh5:
	adrp	x22, _SICF_PRST@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SICF_PRST@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh7:
	adrp	x21, _SICF_FGC@GOTPAGE
Lloh8:
	ldr	x21, [x21, _SICF_FGC@GOTPAGEOFF]
	ldr	w2, [x21]
	orr	w8, w2, w8
	cmp	w9, w20
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x9, _SICF_GMODE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SICF_GMODE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	mov	x2, x8
	bl	_brcms_b_core_ioctl
	mov	w0, #1
	bl	_udelay
	ldr	w2, [x22]
	ldr	w8, [x21]
	orr	w1, w8, w2
	mov	x0, x19
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	x1, x8
	bl	_brcms_b_core_ioctl
	mov	w0, #1
	bl	_udelay
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
LBB0_3:
	bl	_brcms_b_core_ioctl
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_udelay
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wl%d: clk %d\n"

	.comm	_OFF,4,2                        ; @OFF
	.comm	_SICF_PRST,4,2                  ; @SICF_PRST
	.comm	_SICF_FGC,4,2                   ; @SICF_FGC
	.comm	_SICF_GMODE,4,2                 ; @SICF_GMODE
	.no_dead_strip	_brcms_b_core_phy_clk
.subsections_via_symbols
