	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sis900_set_capability
_sis900_set_capability:                 ## @sis900_set_capability
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	4(%rsi), %esi
	movq	_MII_STATUS@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_mdio_read
	movl	4(%rbx), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_mdio_read
	movq	_MII_STAT_CAN_TX_FDX@GOTPCREL(%rip), %rcx
	movl	(%rbx), %eax
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_2
## %bb.1:
	movq	_MII_NWAY_TX_FDX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	movq	_MII_NWAY_CSMA_CD@GOTPCREL(%rip), %rsi
	movq	_MII_STAT_CAN_TX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	je	LBB0_4
## %bb.3:
	movq	_MII_NWAY_TX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_4:
	orl	(%rsi), %ecx
	movq	_MII_STAT_CAN_T_FDX@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%eax, %esi
	je	LBB0_6
## %bb.5:
	movq	_MII_NWAY_T_FDX@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_6:
	orl	%esi, %edx
	orl	%edx, %ecx
	movl	4(%rbx), %esi
	movq	_MII_STAT_CAN_T@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	je	LBB0_8
## %bb.7:
	movq	_MII_NWAY_T@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	orl	%eax, %ecx
	movq	_MII_ANADV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mdio_write                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_STATUS,4,2                 ## @MII_STATUS
	.comm	_MII_NWAY_CSMA_CD,4,2           ## @MII_NWAY_CSMA_CD
	.comm	_MII_STAT_CAN_TX_FDX,4,2        ## @MII_STAT_CAN_TX_FDX
	.comm	_MII_NWAY_TX_FDX,4,2            ## @MII_NWAY_TX_FDX
	.comm	_MII_STAT_CAN_TX,4,2            ## @MII_STAT_CAN_TX
	.comm	_MII_NWAY_TX,4,2                ## @MII_NWAY_TX
	.comm	_MII_STAT_CAN_T_FDX,4,2         ## @MII_STAT_CAN_T_FDX
	.comm	_MII_NWAY_T_FDX,4,2             ## @MII_NWAY_T_FDX
	.comm	_MII_STAT_CAN_T,4,2             ## @MII_STAT_CAN_T
	.comm	_MII_NWAY_T,4,2                 ## @MII_NWAY_T
	.comm	_MII_ANADV,4,2                  ## @MII_ANADV
	.no_dead_strip	_sis900_set_capability
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sis900_set_capability
_sis900_set_capability:                 ; @sis900_set_capability
	.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, x1
	mov	x19, x0
	ldr	w1, [x1, #4]
Lloh0:
	adrp	x21, _MII_STATUS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MII_STATUS@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_mdio_read
	ldr	w1, [x20, #4]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_mdio_read
Lloh2:
	adrp	x8, _MII_NWAY_CSMA_CD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MII_NWAY_CSMA_CD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _MII_STAT_CAN_TX_FDX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MII_STAT_CAN_TX_FDX@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _MII_NWAY_TX_FDX@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MII_NWAY_TX_FDX@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	ldp	w11, w1, [x20]
	tst	w9, w11
	csel	w9, wzr, w10, eq
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _MII_STAT_CAN_TX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MII_STAT_CAN_TX@GOTPAGEOFF]
Lloh13:
	adrp	x10, _MII_NWAY_TX@GOTPAGE
Lloh14:
	ldr	x10, [x10, _MII_NWAY_TX@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	ldr	w10, [x10]
	tst	w9, w11
	csel	w9, wzr, w10, eq
Lloh17:
	adrp	x10, _MII_STAT_CAN_T_FDX@GOTPAGE
Lloh18:
	ldr	x10, [x10, _MII_STAT_CAN_T_FDX@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh19:
	ldr	w9, [x10]
Lloh20:
	adrp	x10, _MII_NWAY_T_FDX@GOTPAGE
Lloh21:
	ldr	x10, [x10, _MII_NWAY_T_FDX@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	tst	w9, w11
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _MII_STAT_CAN_T@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MII_STAT_CAN_T@GOTPAGEOFF]
Lloh25:
	adrp	x10, _MII_NWAY_T@GOTPAGE
Lloh26:
	ldr	x10, [x10, _MII_NWAY_T@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
Lloh28:
	ldr	w10, [x10]
	tst	w9, w11
	csel	w9, wzr, w10, eq
Lloh29:
	adrp	x10, _MII_ANADV@GOTPAGE
Lloh30:
	ldr	x10, [x10, _MII_ANADV@GOTPAGEOFF]
	orr	w3, w8, w9
Lloh31:
	ldr	w2, [x10]
	mov	x0, x19
	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
	b	_mdio_write
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh27
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_STATUS,4,2                 ; @MII_STATUS
	.comm	_MII_NWAY_CSMA_CD,4,2           ; @MII_NWAY_CSMA_CD
	.comm	_MII_STAT_CAN_TX_FDX,4,2        ; @MII_STAT_CAN_TX_FDX
	.comm	_MII_NWAY_TX_FDX,4,2            ; @MII_NWAY_TX_FDX
	.comm	_MII_STAT_CAN_TX,4,2            ; @MII_STAT_CAN_TX
	.comm	_MII_NWAY_TX,4,2                ; @MII_NWAY_TX
	.comm	_MII_STAT_CAN_T_FDX,4,2         ; @MII_STAT_CAN_T_FDX
	.comm	_MII_NWAY_T_FDX,4,2             ; @MII_NWAY_T_FDX
	.comm	_MII_STAT_CAN_T,4,2             ; @MII_STAT_CAN_T
	.comm	_MII_NWAY_T,4,2                 ; @MII_NWAY_T
	.comm	_MII_ANADV,4,2                  ; @MII_ANADV
	.no_dead_strip	_sis900_set_capability
.subsections_via_symbols
