	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sja1105_setup
_sja1105_setup:                         ## @sja1105_setup
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_SJA1105_NUM_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	16(%r14), %r15
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_sja1105_parse_dt
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_sja1105_parse_rgmii_delays
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	callq	_sja1105_ptp_clock_register
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_sja1105_static_config_load
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	%r15, %rdi
	callq	_sja1105_clocking_setup
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movl	$1, (%r14)
	movq	_SJA1105_NUM_TC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_sja1105_setup_8021q_tagging
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_1:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_6:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_8:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
LBB0_10:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_2:
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%ebx, %eax
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SJA1105_NUM_PORTS,4,2          ## @SJA1105_NUM_PORTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to parse DT: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"RGMII delay not supported\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to register PTP clock: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to load static config: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to configure MII clocking: %d\n"

	.comm	_SJA1105_NUM_TC,4,2             ## @SJA1105_NUM_TC
	.no_dead_strip	_sja1105_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sja1105_setup
_sja1105_setup:                         ; @sja1105_setup
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _SJA1105_NUM_PORTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SJA1105_NUM_PORTS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	x21, [x0, #16]
	mov	x0, x21
	mov	x1, x22
	bl	_sja1105_parse_dt
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x0, x21
	mov	x1, x22
	bl	_sja1105_parse_rgmii_delays
	tbnz	w0, #31, LBB0_7
; %bb.2:
	mov	x0, x21
	bl	_sja1105_ptp_clock_register
	tbnz	w0, #31, LBB0_8
; %bb.3:
	mov	x0, x21
	mov	x1, x22
	bl	_sja1105_static_config_load
	tbnz	w0, #31, LBB0_9
; %bb.4:
	mov	x0, x21
	bl	_sja1105_clocking_setup
	tbnz	w0, #31, LBB0_10
; %bb.5:
	mov	w8, #1
	str	w8, [x19]
Lloh8:
	adrp	x8, _SJA1105_NUM_TC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SJA1105_NUM_TC@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x19
	mov	w1, #1
	bl	_sja1105_setup_8021q_tagging
	mov	x20, x0
	b	LBB0_12
LBB0_6:
	mov	x20, x0
	ldr	w0, [x19, #8]
	str	x20, [sp, #-16]!
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	add	sp, sp, #16
	b	LBB0_12
LBB0_7:
	mov	x20, x0
	ldr	w0, [x19, #8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_12
LBB0_8:
	mov	x20, x0
	ldr	w0, [x19, #8]
	str	x20, [sp, #-16]!
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_9:
	mov	x20, x0
	ldr	w0, [x19, #8]
	str	x20, [sp, #-16]!
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_10:
	mov	x20, x0
	ldr	w0, [x19, #8]
	str	x20, [sp, #-16]!
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_11:
	bl	_dev_err
	add	sp, sp, #16
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
LBB0_12:
	ldur	x8, [x29, #-40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x20
	sub	sp, x29, #32
	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
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SJA1105_NUM_PORTS,4,2          ; @SJA1105_NUM_PORTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to parse DT: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"RGMII delay not supported\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to register PTP clock: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to load static config: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to configure MII clocking: %d\n"

	.comm	_SJA1105_NUM_TC,4,2             ; @SJA1105_NUM_TC
	.no_dead_strip	_sja1105_setup
.subsections_via_symbols
