	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aw_gmacclk_set_mux
_aw_gmacclk_set_mux:                    ## @aw_gmacclk_set_mux
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	callq	_clknode_get_softc
	movq	%rax, %r14
	cmpl	$129, %ebx
	je	LBB0_1
## %bb.2:
	cmpl	$128, %ebx
	jne	LBB0_6
## %bb.3:
	movq	_GMAC_CLK_PIT_RGMII@GOTPCREL(%rip), %rax
	movq	_GMAC_CLK_SRC_RGMII@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_1:
	movq	_GMAC_CLK_PIT_MII@GOTPCREL(%rip), %rax
	movq	_GMAC_CLK_SRC_MII@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rax), %ebx
	movl	(%rcx), %r15d
	movq	%r14, %rdi
	callq	_DEVICE_LOCK
	leaq	-28(%rbp), %rsi
	movq	%r14, %rdi
	callq	_GMACCLK_READ
	movq	_GMAC_CLK_SRC@GOTPCREL(%rip), %rax
	movq	_GMAC_CLK_PIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	notl	%edx
	andl	-28(%rbp), %edx
	movq	_GMAC_CLK_SRC_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	movq	_GMAC_CLK_PIT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%r15d, %ebx
	orl	%edx, %ebx
	movl	%ebx, -28(%rbp)
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_GMACCLK_WRITE
	movq	%r14, %rdi
	callq	_DEVICE_UNLOCK
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_6:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GMAC_CLK_SRC_MII,4,2           ## @GMAC_CLK_SRC_MII
	.comm	_GMAC_CLK_PIT_MII,4,2           ## @GMAC_CLK_PIT_MII
	.comm	_EMAC_TXC_DIV_CFG_25MHZ,4,2     ## @EMAC_TXC_DIV_CFG_25MHZ
	.comm	_GMAC_CLK_SRC_RGMII,4,2         ## @GMAC_CLK_SRC_RGMII
	.comm	_GMAC_CLK_PIT_RGMII,4,2         ## @GMAC_CLK_PIT_RGMII
	.comm	_EMAC_TXC_DIV_CFG_125MHZ,4,2    ## @EMAC_TXC_DIV_CFG_125MHZ
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_GMAC_CLK_SRC,4,2               ## @GMAC_CLK_SRC
	.comm	_GMAC_CLK_PIT,4,2               ## @GMAC_CLK_PIT
	.comm	_GMAC_CLK_SRC_SHIFT,4,2         ## @GMAC_CLK_SRC_SHIFT
	.comm	_GMAC_CLK_PIT_SHIFT,4,2         ## @GMAC_CLK_PIT_SHIFT
	.no_dead_strip	_aw_gmacclk_set_mux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aw_gmacclk_set_mux
_aw_gmacclk_set_mux:                    ; @aw_gmacclk_set_mux
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	bl	_clknode_get_softc
	mov	x19, x0
	cmp	w20, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #128
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _GMAC_CLK_PIT_RGMII@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GMAC_CLK_PIT_RGMII@GOTPAGEOFF]
Lloh2:
	adrp	x9, _GMAC_CLK_SRC_RGMII@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GMAC_CLK_SRC_RGMII@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _GMAC_CLK_PIT_MII@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GMAC_CLK_PIT_MII@GOTPAGEOFF]
Lloh6:
	adrp	x9, _GMAC_CLK_SRC_MII@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GMAC_CLK_SRC_MII@GOTPAGEOFF]
LBB0_4:
	ldr	w20, [x8]
	ldr	w21, [x9]
	mov	x0, x19
	bl	_DEVICE_LOCK
	add	x1, sp, #12
	mov	x0, x19
	bl	_GMACCLK_READ
Lloh8:
	adrp	x8, _GMAC_CLK_SRC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GMAC_CLK_SRC@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _GMAC_CLK_PIT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _GMAC_CLK_PIT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
Lloh14:
	adrp	x9, _GMAC_CLK_SRC_SHIFT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _GMAC_CLK_SRC_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	lsl	w9, w21, w9
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _GMAC_CLK_PIT_SHIFT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _GMAC_CLK_PIT_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	lsl	w9, w20, w9
	orr	w1, w9, w8
	str	w1, [sp, #12]
	mov	x0, x19
	bl	_GMACCLK_WRITE
	mov	x0, x19
	bl	_DEVICE_UNLOCK
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh20:
	adrp	x8, _ENXIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GMAC_CLK_SRC_MII,4,2           ; @GMAC_CLK_SRC_MII
	.comm	_GMAC_CLK_PIT_MII,4,2           ; @GMAC_CLK_PIT_MII
	.comm	_EMAC_TXC_DIV_CFG_25MHZ,4,2     ; @EMAC_TXC_DIV_CFG_25MHZ
	.comm	_GMAC_CLK_SRC_RGMII,4,2         ; @GMAC_CLK_SRC_RGMII
	.comm	_GMAC_CLK_PIT_RGMII,4,2         ; @GMAC_CLK_PIT_RGMII
	.comm	_EMAC_TXC_DIV_CFG_125MHZ,4,2    ; @EMAC_TXC_DIV_CFG_125MHZ
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_GMAC_CLK_SRC,4,2               ; @GMAC_CLK_SRC
	.comm	_GMAC_CLK_PIT,4,2               ; @GMAC_CLK_PIT
	.comm	_GMAC_CLK_SRC_SHIFT,4,2         ; @GMAC_CLK_SRC_SHIFT
	.comm	_GMAC_CLK_PIT_SHIFT,4,2         ; @GMAC_CLK_PIT_SHIFT
	.no_dead_strip	_aw_gmacclk_set_mux
.subsections_via_symbols
