	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sja1105_clocking_setup_port    ## -- Begin function sja1105_clocking_setup_port
	.p2align	4, 0x90
_sja1105_clocking_setup_port:           ## @sja1105_clocking_setup_port
	.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, %r15d
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %r14
	movq	_BLK_IDX_XMII_PARAMS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movslq	%esi, %rcx
	movq	(%rax), %rdx
	movq	8(%rax), %rsi
	movl	(%rdx,%rcx,4), %eax
	movl	(%rsi,%rcx,4), %edx
	cmpl	$128, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_5
## %bb.3:
	movl	%r15d, %esi
	callq	_sja1105_mii_clocking_setup
	jmp	LBB0_7
LBB0_6:
	movl	%r15d, %esi
	callq	_sja1105_rmii_clocking_setup
	jmp	LBB0_7
LBB0_4:
	movl	%r15d, %esi
	callq	_sja1105_rgmii_clocking_setup
LBB0_7:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLK_IDX_XMII_PARAMS,8,3        ## @BLK_IDX_XMII_PARAMS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid interface mode specified: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Clocking setup for port %d failed: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sja1105_clocking_setup_port    ; -- Begin function sja1105_clocking_setup_port
	.p2align	2
_sja1105_clocking_setup_port:           ; @sja1105_clocking_setup_port
	.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	x19, x1
	ldp	x9, x8, [x0]
Lloh0:
	adrp	x10, _BLK_IDX_XMII_PARAMS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _BLK_IDX_XMII_PARAMS@GOTPAGEOFF]
	ldr	x20, [x8]
Lloh2:
	ldr	x8, [x10]
	ldr	x8, [x9, x8, lsl #3]
	sbfiz	x9, x19, #2, #32
	ldp	x10, x11, [x8]
	ldr	w8, [x10, x9]
	ldr	w2, [x11, x9]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_7
; %bb.3:
	mov	x1, x19
	bl	_sja1105_mii_clocking_setup
	mov	x21, x0
	cbnz	w0, LBB0_6
	b	LBB0_8
LBB0_4:
	mov	x1, x19
	bl	_sja1105_rmii_clocking_setup
	mov	x21, x0
	cbnz	w0, LBB0_6
	b	LBB0_8
LBB0_5:
	mov	x1, x19
	bl	_sja1105_rgmii_clocking_setup
	mov	x21, x0
	cbz	w0, LBB0_8
LBB0_6:
	str	x21, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_dev_err
	b	LBB0_8
LBB0_7:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x8
	bl	_dev_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_BLK_IDX_XMII_PARAMS,8,3        ; @BLK_IDX_XMII_PARAMS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid interface mode specified: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Clocking setup for port %d failed: %d\n"

.subsections_via_symbols
