	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tja11xx_config_init
_tja11xx_config_init:                   ## @tja11xx_config_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_tja11xx_enable_reg_write
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_PHY_ID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.3:
	movq	_MII_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MII_CFG1_AUTO_OP@GOTPCREL(%rip), %rax
	movq	_MII_CFG1_LED_MODE_MASK@GOTPCREL(%rip), %rdx
	movq	_MII_CFG1_LED_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	movq	_MII_CFG1_LED_MODE_LINKUP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_phy_modify
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_6
LBB0_4:
	movq	_MII_COMMCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MII_COMMCFG_AUTO_OP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_phy_set_bits
	testl	%eax, %eax
	jne	LBB0_10
LBB0_6:
	movq	_MII_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MII_CFG1_SLEEP_CONFIRM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_phy_clear_bits
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	_MII_CFG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MII_CFG2_SLEEP_REQUEST_TO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MII_CFG2_SLEEP_REQUEST_TO_16MS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_phy_modify
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	callq	_tja11xx_wakeup
	testl	%eax, %eax
	js	LBB0_10
## %bb.9:
	movq	_MII_INTSRC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
	jmp	LBB0_10
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_PHY_ID_MASK,4,2                ## @PHY_ID_MASK
	.comm	_MII_CFG1,4,2                   ## @MII_CFG1
	.comm	_MII_CFG1_AUTO_OP,4,2           ## @MII_CFG1_AUTO_OP
	.comm	_MII_CFG1_LED_MODE_MASK,4,2     ## @MII_CFG1_LED_MODE_MASK
	.comm	_MII_CFG1_LED_ENABLE,4,2        ## @MII_CFG1_LED_ENABLE
	.comm	_MII_CFG1_LED_MODE_LINKUP,4,2   ## @MII_CFG1_LED_MODE_LINKUP
	.comm	_MII_COMMCFG,4,2                ## @MII_COMMCFG
	.comm	_MII_COMMCFG_AUTO_OP,4,2        ## @MII_COMMCFG_AUTO_OP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MII_CFG1_SLEEP_CONFIRM,4,2     ## @MII_CFG1_SLEEP_CONFIRM
	.comm	_MII_CFG2,4,2                   ## @MII_CFG2
	.comm	_MII_CFG2_SLEEP_REQUEST_TO,4,2  ## @MII_CFG2_SLEEP_REQUEST_TO
	.comm	_MII_CFG2_SLEEP_REQUEST_TO_16MS,4,2 ## @MII_CFG2_SLEEP_REQUEST_TO_16MS
	.comm	_MII_INTSRC,4,2                 ## @MII_INTSRC
	.no_dead_strip	_tja11xx_config_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tja11xx_config_init
_tja11xx_config_init:                   ; @tja11xx_config_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_tja11xx_enable_reg_write
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x8, _AUTONEG_DISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #12]
Lloh3:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _PHY_ID_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PHY_ID_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_10
; %bb.4:
Lloh12:
	adrp	x8, _MII_CFG1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MII_CFG1@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _MII_CFG1_AUTO_OP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MII_CFG1_AUTO_OP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _MII_CFG1_LED_MODE_MASK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MII_CFG1_LED_MODE_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _MII_CFG1_LED_ENABLE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _MII_CFG1_LED_ENABLE@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w8, w10, w8
	orr	w2, w8, w9
Lloh24:
	adrp	x9, _MII_CFG1_LED_MODE_LINKUP@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MII_CFG1_LED_MODE_LINKUP@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w3, w8, w9
	mov	x0, x19
	bl	_phy_modify
	cbnz	w0, LBB0_1
	b	LBB0_6
LBB0_5:
Lloh27:
	adrp	x8, _MII_COMMCFG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MII_COMMCFG@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _MII_COMMCFG_AUTO_OP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MII_COMMCFG_AUTO_OP@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_set_bits
	cbnz	w0, LBB0_1
LBB0_6:
Lloh33:
	adrp	x8, _MII_CFG1@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MII_CFG1@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _MII_CFG1_SLEEP_CONFIRM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MII_CFG1_SLEEP_CONFIRM@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_clear_bits
	cbnz	w0, LBB0_1
; %bb.7:
Lloh39:
	adrp	x8, _MII_CFG2@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MII_CFG2@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
Lloh42:
	adrp	x8, _MII_CFG2_SLEEP_REQUEST_TO@GOTPAGE
Lloh43:
	ldr	x8, [x8, _MII_CFG2_SLEEP_REQUEST_TO@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
Lloh45:
	adrp	x8, _MII_CFG2_SLEEP_REQUEST_TO_16MS@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MII_CFG2_SLEEP_REQUEST_TO_16MS@GOTPAGEOFF]
Lloh47:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_phy_modify
	cbnz	w0, LBB0_1
; %bb.8:
	mov	x0, x19
	bl	_tja11xx_wakeup
	tbnz	w0, #31, LBB0_1
; %bb.9:
Lloh48:
	adrp	x8, _MII_INTSRC@GOTPAGE
Lloh49:
	ldr	x8, [x8, _MII_INTSRC@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	b	LBB0_1
LBB0_10:
Lloh51:
	adrp	x8, _EINVAL@GOTPAGE
Lloh52:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_PHY_ID_MASK,4,2                ; @PHY_ID_MASK
	.comm	_MII_CFG1,4,2                   ; @MII_CFG1
	.comm	_MII_CFG1_AUTO_OP,4,2           ; @MII_CFG1_AUTO_OP
	.comm	_MII_CFG1_LED_MODE_MASK,4,2     ; @MII_CFG1_LED_MODE_MASK
	.comm	_MII_CFG1_LED_ENABLE,4,2        ; @MII_CFG1_LED_ENABLE
	.comm	_MII_CFG1_LED_MODE_LINKUP,4,2   ; @MII_CFG1_LED_MODE_LINKUP
	.comm	_MII_COMMCFG,4,2                ; @MII_COMMCFG
	.comm	_MII_COMMCFG_AUTO_OP,4,2        ; @MII_COMMCFG_AUTO_OP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MII_CFG1_SLEEP_CONFIRM,4,2     ; @MII_CFG1_SLEEP_CONFIRM
	.comm	_MII_CFG2,4,2                   ; @MII_CFG2
	.comm	_MII_CFG2_SLEEP_REQUEST_TO,4,2  ; @MII_CFG2_SLEEP_REQUEST_TO
	.comm	_MII_CFG2_SLEEP_REQUEST_TO_16MS,4,2 ; @MII_CFG2_SLEEP_REQUEST_TO_16MS
	.comm	_MII_INTSRC,4,2                 ; @MII_INTSRC
	.no_dead_strip	_tja11xx_config_init
.subsections_via_symbols
