	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc92031_open
_sc92031_open:                          ## @sc92031_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, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	64(%rax), %r15
	movq	_RX_BUF_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_pci_alloc_consistent
	movq	%rax, 8(%r12)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_2:
	movq	_TX_BUF_TOT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	16(%r12), %rdx
	movq	%r15, %rdi
	callq	_pci_alloc_consistent
	movq	%rax, 24(%r12)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_4:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%r12)
	movl	(%r15), %edi
	movq	_sc92031_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	movq	%r14, %r8
	callq	_request_irq
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movq	_TX_BUF_TOT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%r12), %rdx
	movl	16(%r12), %ecx
	movq	%r15, %rdi
	callq	_pci_free_consistent
LBB0_9:
	movl	(%r13), %esi
	movq	8(%r12), %rdx
	movl	(%r12), %ecx
	movq	%r15, %rdi
	callq	_pci_free_consistent
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	$0, 40(%r12)
	addq	$32, %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	%r14, %rdi
	callq	__sc92031_reset
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movq	%r14, %rdi
	callq	_sc92031_enable_interrupts
	movq	%r14, %rdi
	callq	_netif_carrier_ok
	movq	%r14, %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	callq	_netif_start_queue
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_7:
	callq	_netif_tx_disable
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_BUF_LEN,4,2                 ## @RX_BUF_LEN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TX_BUF_TOT_LEN,4,2             ## @TX_BUF_TOT_LEN
	.comm	_sc92031_interrupt,4,2          ## @sc92031_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.no_dead_strip	_sc92031_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc92031_open
_sc92031_open:                          ; @sc92031_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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x21, [x0, #64]
Lloh0:
	adrp	x23, _RX_BUF_LEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RX_BUF_LEN@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	mov	x2, x20
	bl	_pci_alloc_consistent
	str	x0, [x20, #8]
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_2:
Lloh5:
	adrp	x24, _TX_BUF_TOT_LEN@GOTPAGE
Lloh6:
	ldr	x24, [x24, _TX_BUF_TOT_LEN@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, x20, #16
	mov	x0, x21
	bl	_pci_alloc_consistent
	str	x0, [x20, #24]
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_6
LBB0_4:
	stp	xzr, xzr, [x20, #48]
Lloh10:
	adrp	x8, _sc92031_interrupt@GOTPAGE
Lloh11:
	ldr	x8, [x8, _sc92031_interrupt@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldr	w3, [x19]
	mov	x4, x19
	bl	_request_irq
	mov	x22, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.5:
	ldr	w1, [x24]
	ldr	x2, [x20, #24]
	ldr	w3, [x20, #16]
	mov	x0, x21
	bl	_pci_free_consistent
LBB0_6:
	ldr	w1, [x23]
	ldr	x2, [x20, #8]
	ldr	w3, [x20]
	mov	x0, x21
	bl	_pci_free_consistent
LBB0_7:
	mov	x0, x22
	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
LBB0_8:
	str	xzr, [x20, #40]
	add	x20, x20, #32
	mov	x0, x20
	bl	_spin_lock_bh
	mov	x0, x19
	bl	__sc92031_reset
	mov	x0, x20
	bl	_spin_unlock_bh
	mov	x0, x19
	bl	_sc92031_enable_interrupts
	mov	x0, x19
	bl	_netif_carrier_ok
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_netif_start_queue
	mov	w22, #0
	b	LBB0_7
LBB0_10:
	mov	x0, x19
	bl	_netif_tx_disable
	mov	w22, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_BUF_LEN,4,2                 ; @RX_BUF_LEN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TX_BUF_TOT_LEN,4,2             ; @TX_BUF_TOT_LEN
	.comm	_sc92031_interrupt,4,2          ; @sc92031_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.no_dead_strip	_sc92031_open
.subsections_via_symbols
