	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdio_gpio_bus_init
_mdio_gpio_bus_init:                    ## @mdio_gpio_bus_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_dev_get_platdata
	movq	%rax, %r15
	movq	_mdio_gpio_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_alloc_mdio_bitbang
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rbx)
	movq	%r14, 24(%rbx)
	movl	16(%rbx), %edi
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$-1, %r12d
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdx
	movl	%eax, %esi
	movl	%r12d, %ecx
	callq	_snprintf
	testq	%r15, %r15
	je	LBB0_6
LBB0_5:
	movl	4(%r15), %eax
	movl	%eax, 12(%rbx)
	movl	(%r15), %eax
	movl	%eax, 8(%rbx)
LBB0_6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_dev_set_drvdata
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_strncpy
	testq	%r15, %r15
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_mdio_gpio_ops,4,2              ## @mdio_gpio_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GPIO Bitbanged MDIO"

	.comm	_MII_BUS_ID_SIZE,4,2            ## @MII_BUS_ID_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"gpio-%x"

L_.str.2:                               ## @.str.2
	.asciz	"gpio"

	.no_dead_strip	_mdio_gpio_bus_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdio_gpio_bus_init
_mdio_gpio_bus_init:                    ; @mdio_gpio_bus_init
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_dev_get_platdata
	mov	x21, x0
Lloh0:
	adrp	x8, _mdio_gpio_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mdio_gpio_ops@GOTPAGEOFF]
	str	x8, [x20]
	mov	x0, x20
	bl	_alloc_mdio_bitbang
	mov	x20, x0
	cbz	x0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, l_.str@PAGE
Lloh3:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x20]
	str	x19, [x20, #24]
	ldr	w0, [x20, #16]
Lloh4:
	adrp	x8, _MII_BUS_ID_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MII_BUS_ID_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmn	w22, #1
	b.eq	LBB0_6
; %bb.2:
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x8
	mov	x3, x22
	bl	_snprintf
	cbz	x21, LBB0_4
LBB0_3:
	ldr	d0, [x21]
	str	d0, [x20, #8]
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
LBB0_5:
	mov	x0, x20
	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_6:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x8
	bl	_strncpy
	cbnz	x21, LBB0_3
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_mdio_gpio_ops,4,2              ; @mdio_gpio_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPIO Bitbanged MDIO"

	.comm	_MII_BUS_ID_SIZE,4,2            ; @MII_BUS_ID_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"gpio-%x"

l_.str.2:                               ; @.str.2
	.asciz	"gpio"

	.no_dead_strip	_mdio_gpio_bus_init
.subsections_via_symbols
