	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_carrier
_set_carrier:                           ## @set_carrier
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	48(%rdi), %r14
	leaq	36(%rdi), %r15
	callq	_rtl8152_get_speed
	movl	%eax, %ebx
	movq	_LINK_STATUS@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_netif_carrier_ok
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.1:
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	leaq	32(%r12), %rdi
	callq	_skb_queue_len
	cmpq	(%r12), %rax
	jge	LBB0_9
## %bb.5:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
LBB0_6:
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	_netif_carrier_off
	leaq	8(%r12), %rbx
	movq	%rbx, %rdi
	callq	_tasklet_disable
	movq	%r15, %rdi
	callq	_napi_disable
	movq	%r12, %rdi
	callq	*16(%r12)
	movq	%r15, %rdi
	callq	_napi_enable
	movq	%rbx, %rdi
	callq	_tasklet_enable
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_8
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r12, %rdi
	callq	*24(%r12)
	movq	%r14, %rdi
	callq	_netif_stop_queue
	movq	%r15, %rdi
	callq	_napi_disable
	movq	%r14, %rdi
	callq	_netif_carrier_on
	movq	%r12, %rdi
	callq	_rtl_start_rx
	movq	_RTL8152_SET_RX_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	40(%r12), %rsi
	callq	_clear_bit
	movq	%r14, %rdi
	callq	__rtl8152_set_rx_mode
	movq	%r15, %rdi
	callq	_napi_enable
	movq	%r14, %rdi
	callq	_netif_wake_queue
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
LBB0_8:
	movq	%r12, %rdi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_info                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LINK_STATUS,4,2                ## @LINK_STATUS
	.comm	_RTL8152_SET_RX_MODE,4,2        ## @RTL8152_SET_RX_MODE
	.comm	_link,4,2                       ## @link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"carrier on\n"

L_.str.1:                               ## @.str.1
	.asciz	"carrier off\n"

	.no_dead_strip	_set_carrier
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_carrier
_set_carrier:                           ; @set_carrier
	.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, x0
	ldr	x19, [x0, #48]
	add	x21, x0, #36
	bl	_rtl8152_get_speed
Lloh0:
	adrp	x8, _LINK_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LINK_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w22, w8, w0
	mov	x0, x19
	bl	_netif_carrier_ok
	cbz	w22, LBB0_5
; %bb.1:
	cbz	x0, LBB0_8
; %bb.2:
	mov	x0, x19
	bl	_netif_queue_stopped
	cbz	x0, LBB0_7
; %bb.3:
	add	x0, x20, #32
	bl	_skb_queue_len
	ldr	x8, [x20]
	cmp	x0, x8
	b.ge	LBB0_7
; %bb.4:
	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	_netif_wake_queue
LBB0_5:
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_netif_carrier_off
	add	x22, x20, #8
	mov	x0, x22
	bl	_tasklet_disable
	mov	x0, x21
	bl	_napi_disable
	ldr	x8, [x20, #16]
	mov	x0, x20
	blr	x8
	mov	x0, x21
	bl	_napi_enable
	mov	x0, x22
	bl	_tasklet_enable
Lloh3:
	adrp	x8, _link@GOTPAGE
Lloh4:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x3, l_.str.1@PAGE
Lloh7:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
	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
LBB0_8:
	ldr	x8, [x20, #24]
	mov	x0, x20
	blr	x8
	mov	x0, x19
	bl	_netif_stop_queue
	mov	x0, x21
	bl	_napi_disable
	mov	x0, x19
	bl	_netif_carrier_on
	mov	x0, x20
	bl	_rtl_start_rx
Lloh8:
	adrp	x8, _RTL8152_SET_RX_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RTL8152_SET_RX_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, x20, #40
	bl	_clear_bit
	mov	x0, x19
	bl	__rtl8152_set_rx_mode
	mov	x0, x21
	bl	_napi_enable
	mov	x0, x19
	bl	_netif_wake_queue
Lloh11:
	adrp	x8, _link@GOTPAGE
Lloh12:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x3, l_.str@PAGE
Lloh15:
	add	x3, x3, l_.str@PAGEOFF
LBB0_9:
	mov	x0, x20
	mov	x2, 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	_netif_info
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LINK_STATUS,4,2                ; @LINK_STATUS
	.comm	_RTL8152_SET_RX_MODE,4,2        ; @RTL8152_SET_RX_MODE
	.comm	_link,4,2                       ; @link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"carrier on\n"

l_.str.1:                               ; @.str.1
	.asciz	"carrier off\n"

	.no_dead_strip	_set_carrier
.subsections_via_symbols
