	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fs_mii_bitbang_init
_fs_mii_bitbang_init:                   ## @fs_mii_bitbang_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	%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	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	leaq	-40(%rbp), %rdx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_of_address_to_resource
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	leaq	-40(%rbp), %rdi
	callq	_resource_size
	cmpl	$13, %eax
	jg	LBB0_4
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%rbx), %edi
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-40(%rbp), %ecx
	leaq	L_.str(%rip), %rdx
	callq	_snprintf
	leaq	L_.str.1(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	cmpl	$4, -44(%rbp)
	jne	LBB0_2
## %bb.6:
	movl	(%rax), %r14d
	leaq	L_.str.2(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_2
## %bb.7:
	cmpl	$4, -44(%rbp)
	jne	LBB0_2
## %bb.8:
	movl	(%rax), %r15d
	movl	-40(%rbp), %ebx
	leaq	-40(%rbp), %rdi
	callq	_resource_size
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ioremap
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	addq	$4, %rax
	movl	$-2147483648, %edx              ## imm = 0x80000000
	movl	%r14d, %ecx
	shrl	%cl, %edx
	movl	$-2147483648, %esi              ## imm = 0x80000000
	movl	%r15d, %ecx
	shrl	%cl, %esi
	movq	%rax, 16(%r12)
	movl	%edx, (%r12)
	movl	%esi, 4(%r12)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_MII_BUS_ID_SIZE,4,2            ## @MII_BUS_ID_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%x"

L_.str.1:                               ## @.str.1
	.asciz	"fsl,mdio-pin"

L_.str.2:                               ## @.str.2
	.asciz	"fsl,mdc-pin"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_fs_mii_bitbang_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fs_mii_bitbang_init
_fs_mii_bitbang_init:                   ; @fs_mii_bitbang_init
	.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
	mov	x20, x0
	ldr	x21, [x0, #8]
	add	x2, sp, #8
	mov	x0, x1
	mov	w1, #0
	bl	_of_address_to_resource
	cbnz	w0, LBB0_4
; %bb.1:
	add	x0, sp, #8
	bl	_resource_size
	cmp	w0, #13
	b.gt	LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
LBB0_5:
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _MII_BUS_ID_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MII_BUS_ID_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w3, [sp, #8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	bl	_snprintf
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #4
	mov	x0, x19
	bl	_of_get_property
	cbz	x0, LBB0_2
; %bb.6:
	ldr	w8, [sp, #4]
	cmp	w8, #4
	b.ne	LBB0_2
; %bb.7:
	ldr	w20, [x0]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #4
	mov	x0, x19
	bl	_of_get_property
	cbz	x0, LBB0_2
; %bb.8:
	ldr	w8, [sp, #4]
	cmp	w8, #4
	b.ne	LBB0_2
; %bb.9:
	ldr	w22, [x0]
	ldr	w19, [sp, #8]
	add	x0, sp, #8
	bl	_resource_size
	mov	x1, x0
	mov	x0, x19
	bl	_ioremap
	str	x0, [x21, #8]
	cbz	x0, LBB0_11
; %bb.10:
	mov	x8, x0
	mov	w0, #0
	add	x8, x8, #4
	str	x8, [x21, #16]
	mov	w8, #-2147483648
	lsr	w9, w8, w20
	lsr	w8, w8, w22
	stp	w9, w8, [x21]
	b	LBB0_4
LBB0_11:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_MII_BUS_ID_SIZE,4,2            ; @MII_BUS_ID_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%x"

l_.str.1:                               ; @.str.1
	.asciz	"fsl,mdio-pin"

l_.str.2:                               ; @.str.2
	.asciz	"fsl,mdc-pin"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_fs_mii_bitbang_init
.subsections_via_symbols
