	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sis900_reset
_sis900_reset:                          ## @sis900_reset
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r15
	movq	_TxRCMP@GOTPCREL(%rip), %rax
	movq	_RxRCMP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_ier@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	%r15, %rsi
	movl	(%rax), %ebx
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_outl
	movq	_imr@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	xorl	%edi, %edi
	callq	_outl
	movq	_rfcr@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	xorl	%edi, %edi
	callq	_outl
	movq	_RxRESET@GOTPCREL(%rip), %rax
	movq	_TxRESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movq	_RESET@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_cr@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	%r15, %rdi
	callq	_inl
	orl	%eax, %r12d
	movq	(%r14), %rsi
	addq	%r15, %rsi
	movl	%r12d, %edi
	callq	_outl
	orl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	je	LBB0_4
## %bb.1:
	movq	_isr@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r12d
	movq	(%r14), %rdi
	addq	%r15, %rdi
	callq	_inl
	movl	%eax, %ebx
	notl	%ebx
	andl	%r12d, %ebx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%r13), %eax
	cmpl	$999, %r13d                     ## imm = 0x3E7
	movl	%eax, %r13d
	jb	LBB0_2
LBB0_4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_SIS900B_900_REV@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	movq	_RND_CNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmovel	%ecx, %edi
	movq	_SIS635A_900_REV@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	movq	_PESEL@GOTPCREL(%rip), %rax
	cmovgel	%ecx, %edi
	orl	(%rax), %edi
	movq	_cfg@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	movq	%r15, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outl                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TxRCMP,4,2                     ## @TxRCMP
	.comm	_RxRCMP,4,2                     ## @RxRCMP
	.comm	_ier,8,3                        ## @ier
	.comm	_imr,8,3                        ## @imr
	.comm	_rfcr,8,3                       ## @rfcr
	.comm	_RxRESET,4,2                    ## @RxRESET
	.comm	_TxRESET,4,2                    ## @TxRESET
	.comm	_RESET,4,2                      ## @RESET
	.comm	_cr,8,3                         ## @cr
	.comm	_isr,8,3                        ## @isr
	.comm	_SIS635A_900_REV,8,3            ## @SIS635A_900_REV
	.comm	_SIS900B_900_REV,8,3            ## @SIS900B_900_REV
	.comm	_PESEL,4,2                      ## @PESEL
	.comm	_RND_CNT,4,2                    ## @RND_CNT
	.comm	_cfg,8,3                        ## @cfg
	.no_dead_strip	_sis900_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sis900_reset
_sis900_reset:                          ; @sis900_reset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x20, [x20]
Lloh0:
	adrp	x8, _TxRCMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TxRCMP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RxRCMP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RxRCMP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w21, w9, w8
Lloh6:
	adrp	x8, _ier@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ier@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x1, x8, x20
	mov	w0, #0
	bl	_outl
Lloh9:
	adrp	x8, _imr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _imr@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x1, x8, x20
	mov	w0, #0
	bl	_outl
Lloh12:
	adrp	x8, _rfcr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _rfcr@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x1, x8, x20
	mov	w0, #0
	bl	_outl
Lloh15:
	adrp	x8, _RxRESET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RxRESET@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _TxRESET@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TxRESET@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh21:
	adrp	x9, _RESET@GOTPAGE
Lloh22:
	ldr	x9, [x9, _RESET@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w22, w8, w9
Lloh24:
	adrp	x23, _cr@GOTPAGE
Lloh25:
	ldr	x23, [x23, _cr@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x0, x8, x20
	bl	_inl
	orr	w0, w22, w0
	ldr	x8, [x23]
	add	x1, x8, x20
	bl	_outl
	cbz	w21, LBB0_4
; %bb.1:
	mov	w22, #0
Lloh26:
	adrp	x23, _isr@GOTPAGE
Lloh27:
	ldr	x23, [x23, _isr@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x0, x8, x20
	bl	_inl
	bics	w21, w21, w0
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w22, #1
	cmp	w22, #999
	mov	x22, x8
	b.lo	LBB0_2
LBB0_4:
	ldr	x8, [x19]
Lloh28:
	adrp	x9, _SIS635A_900_REV@GOTPAGE
Lloh29:
	ldr	x9, [x9, _SIS635A_900_REV@GOTPAGEOFF]
Lloh30:
	adrp	x10, _SIS900B_900_REV@GOTPAGE
Lloh31:
	ldr	x10, [x10, _SIS900B_900_REV@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
Lloh33:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #0, ne
Lloh34:
	adrp	x8, _PESEL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PESEL@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _RND_CNT@GOTPAGE
Lloh38:
	ldr	x9, [x9, _RND_CNT@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	csel	w9, w9, wzr, ge
	orr	w0, w8, w9
Lloh40:
	adrp	x8, _cfg@GOTPAGE
Lloh41:
	ldr	x8, [x8, _cfg@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	add	x1, x8, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_outl
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_TxRCMP,4,2                     ; @TxRCMP
	.comm	_RxRCMP,4,2                     ; @RxRCMP
	.comm	_ier,8,3                        ; @ier
	.comm	_imr,8,3                        ; @imr
	.comm	_rfcr,8,3                       ; @rfcr
	.comm	_RxRESET,4,2                    ; @RxRESET
	.comm	_TxRESET,4,2                    ; @TxRESET
	.comm	_RESET,4,2                      ; @RESET
	.comm	_cr,8,3                         ; @cr
	.comm	_isr,8,3                        ; @isr
	.comm	_SIS635A_900_REV,8,3            ; @SIS635A_900_REV
	.comm	_SIS900B_900_REV,8,3            ; @SIS900B_900_REV
	.comm	_PESEL,4,2                      ; @PESEL
	.comm	_RND_CNT,4,2                    ; @RND_CNT
	.comm	_cfg,8,3                        ; @cfg
	.no_dead_strip	_sis900_reset
.subsections_via_symbols
