	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sis190_open
_sis190_open:                           ## @sis190_open
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	32(%rax), %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_sis190_set_rxbufsize
	movq	_TX_RING_BYTES@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_pci_alloc_consistent
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_RX_RING_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	addq	$16, %rdx
	movq	%r14, %rdi
	callq	_pci_alloc_consistent
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%r12, %rdi
	callq	_sis190_init_ring
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	callq	_sis190_request_timer
	movl	(%r14), %edi
	movq	_sis190_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	movq	%r12, %r8
	callq	_request_irq
	movl	%eax, %r15d
	movq	%r12, %rdi
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	callq	_sis190_hw_start
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %r15d
	jmp	LBB0_8
LBB0_7:
	callq	_sis190_delete_timer
	movq	%rbx, %rdi
	callq	_sis190_rx_clear
LBB0_8:
	movq	_RX_RING_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%rbx), %rdx
	movl	16(%rbx), %ecx
	movq	%r14, %rdi
	callq	_pci_free_consistent
LBB0_9:
	movl	(%r13), %esi
	movq	8(%rbx), %rdx
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	callq	_pci_free_consistent
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TX_RING_BYTES,4,2              ## @TX_RING_BYTES
	.comm	_RX_RING_BYTES,4,2              ## @RX_RING_BYTES
	.comm	_sis190_irq,4,2                 ## @sis190_irq
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.no_dead_strip	_sis190_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sis190_open
_sis190_open:                           ; @sis190_open
	.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	x22, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x19, [x0, #32]
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	mov	x1, x22
	bl	_sis190_set_rxbufsize
Lloh3:
	adrp	x23, _TX_RING_BYTES@GOTPAGE
Lloh4:
	ldr	x23, [x23, _TX_RING_BYTES@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x20
	bl	_pci_alloc_consistent
	str	x0, [x20, #8]
	cbz	x0, LBB0_9
; %bb.1:
Lloh5:
	adrp	x24, _RX_RING_BYTES@GOTPAGE
Lloh6:
	ldr	x24, [x24, _RX_RING_BYTES@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, x20, #16
	mov	x0, x19
	bl	_pci_alloc_consistent
	str	x0, [x20, #24]
	cbz	x0, LBB0_8
; %bb.2:
	mov	x0, x22
	bl	_sis190_init_ring
	tbnz	w0, #31, LBB0_5
; %bb.3:
	mov	x0, x22
	bl	_sis190_request_timer
Lloh7:
	adrp	x8, _sis190_irq@GOTPAGE
Lloh8:
	ldr	x8, [x8, _sis190_irq@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	ldr	w3, [x22]
	mov	x4, x22
	bl	_request_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	x0, x22
	bl	_sis190_hw_start
	b	LBB0_9
LBB0_5:
	mov	x21, x0
	b	LBB0_7
LBB0_6:
	mov	x0, x22
	bl	_sis190_delete_timer
	mov	x0, x20
	bl	_sis190_rx_clear
LBB0_7:
	ldr	w1, [x24]
	ldr	x2, [x20, #24]
	ldr	w3, [x20, #16]
	mov	x0, x19
	bl	_pci_free_consistent
LBB0_8:
	ldr	w1, [x23]
	ldr	x2, [x20, #8]
	ldr	w3, [x20]
	mov	x0, x19
	bl	_pci_free_consistent
LBB0_9:
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TX_RING_BYTES,4,2              ; @TX_RING_BYTES
	.comm	_RX_RING_BYTES,4,2              ; @RX_RING_BYTES
	.comm	_sis190_irq,4,2                 ; @sis190_irq
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.no_dead_strip	_sis190_open
.subsections_via_symbols
