	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan743x_mdiobus_init
_lan743x_mdiobus_init:                  ## @lan743x_mdiobus_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	callq	_devm_mdiobus_alloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, 24(%rax)
	movq	_lan743x_mdiobus_read@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_lan743x_mdiobus_write@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%rax)
	movl	12(%rax), %r14d
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	16(%rbx), %rdi
	callq	_pci_name
	leaq	L_.str.1(%rip), %rdx
	movl	%r14d, %edi
	movl	%r15d, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	_ID_REV_ID_MASK_@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%rbx), %eax
	movq	_ID_REV_ID_LAN7430_@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.4:
	movl	$1, %edi
	callq	_BIT
	notl	%eax
	movq	(%rbx), %rdi
	movl	%eax, 8(%rdi)
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_3:
	movq	(%rbx), %rdi
LBB0_5:
	callq	_mdiobus_register
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jns	LBB0_7
## %bb.6:
	movl	%ecx, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_lan743x_mdiobus_read,4,2       ## @lan743x_mdiobus_read
	.comm	_lan743x_mdiobus_write,4,2      ## @lan743x_mdiobus_write
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lan743x-mdiobus"

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

	.comm	_ID_REV_ID_MASK_,4,2            ## @ID_REV_ID_MASK_
	.comm	_ID_REV_ID_LAN7430_,4,2         ## @ID_REV_ID_LAN7430_
	.no_dead_strip	_lan743x_mdiobus_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan743x_mdiobus_init
_lan743x_mdiobus_init:                  ; @lan743x_mdiobus_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	x19, x0
	ldr	x0, [x0, #16]
	bl	_devm_mdiobus_alloc
	str	x0, [x19]
	cbz	x0, LBB0_3
; %bb.1:
	str	x19, [x0, #24]
Lloh0:
	adrp	x8, _lan743x_mdiobus_read@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lan743x_mdiobus_read@GOTPAGEOFF]
Lloh2:
	adrp	x9, _lan743x_mdiobus_write@GOTPAGE
Lloh3:
	ldr	x9, [x9, _lan743x_mdiobus_write@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
	ldr	w20, [x0, #12]
Lloh8:
	adrp	x8, _MII_BUS_ID_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MII_BUS_ID_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	ldr	x0, [x19, #16]
	bl	_pci_name
	mov	x3, x0
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_snprintf
	ldr	w8, [x19, #8]
Lloh13:
	adrp	x9, _ID_REV_ID_MASK_@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ID_REV_ID_MASK_@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh16:
	adrp	x9, _ID_REV_ID_LAN7430_@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ID_REV_ID_LAN7430_@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #1
	bl	_BIT
	mvn	w8, w0
	ldr	x0, [x19]
	str	w8, [x0, #8]
	bl	_mdiobus_register
	tbz	w0, #31, LBB0_5
	b	LBB0_6
LBB0_3:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	ldr	x0, [x19]
	bl	_mdiobus_register
	tbnz	w0, #31, LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_lan743x_mdiobus_read,4,2       ; @lan743x_mdiobus_read
	.comm	_lan743x_mdiobus_write,4,2      ; @lan743x_mdiobus_write
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lan743x-mdiobus"

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

	.comm	_ID_REV_ID_MASK_,4,2            ; @ID_REV_ID_MASK_
	.comm	_ID_REV_ID_LAN7430_,4,2         ; @ID_REV_ID_LAN7430_
	.no_dead_strip	_lan743x_mdiobus_init
.subsections_via_symbols
