	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdiobb_write
_mdiobb_write:                          ## @mdiobb_write
	.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
	movl	%ecx, %r14d
	movl	%edx, %ecx
	movl	%esi, %r15d
	movq	(%rdi), %rbx
	movq	_MII_ADDR_C45@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%ecx, %edx
	callq	_mdiobb_cmd_addr
	movl	%eax, %ecx
	movq	_MDIO_C45_WRITE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_MDIO_WRITE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_mdiobb_cmd
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_mdiobb_send_bit
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_mdiobb_send_bit
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$16, %edx
	callq	_mdiobb_send_num
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	movq	%rbx, %rdi
	callq	_mdiobb_get_bit
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_ADDR_C45,4,2               ## @MII_ADDR_C45
	.comm	_MDIO_C45_WRITE,4,2             ## @MDIO_C45_WRITE
	.comm	_MDIO_WRITE,4,2                 ## @MDIO_WRITE
	.no_dead_strip	_mdiobb_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdiobb_write
_mdiobb_write:                          ; @mdiobb_write
	.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	x20, x3
	mov	x3, x2
	mov	x21, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _MII_ADDR_C45@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_ADDR_C45@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x3
	bl	_mdiobb_cmd_addr
	mov	x3, x0
Lloh3:
	adrp	x8, _MDIO_C45_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDIO_C45_WRITE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _MDIO_WRITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MDIO_WRITE@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_mdiobb_cmd
	mov	x0, x19
	mov	w1, #1
	bl	_mdiobb_send_bit
	mov	x0, x19
	mov	w1, #0
	bl	_mdiobb_send_bit
	mov	x0, x19
	mov	x1, x20
	mov	w2, #16
	bl	_mdiobb_send_num
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	mov	x0, x19
	bl	_mdiobb_get_bit
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_ADDR_C45,4,2               ; @MII_ADDR_C45
	.comm	_MDIO_C45_WRITE,4,2             ; @MDIO_C45_WRITE
	.comm	_MDIO_WRITE,4,2                 ; @MDIO_WRITE
	.no_dead_strip	_mdiobb_write
.subsections_via_symbols
