	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8152_set_coalesce
_rtl8152_set_coalesce:                  ## @rtl8152_set_coalesce
	.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	%rsi, %r13
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_3
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	(%r13), %rax
	movq	_COALESCE_SLOW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	16(%r14), %edi
	callq	_usb_autopm_get_interface
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.6:
	leaq	20(%r14), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	(%r13), %rax
	cmpq	%rax, 8(%r14)
	je	LBB0_10
## %bb.7:
	movq	%rax, 8(%r14)
	movq	%r15, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%r15, %rdi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_netif_stop_queue
	leaq	24(%r14), %r13
	movq	%r13, %rdi
	callq	_napi_disable
	movq	%r14, %rdi
	callq	*40(%r14)
	movq	%r14, %rdi
	callq	*32(%r14)
	movq	%r14, %rdi
	callq	_rtl_start_rx
	movq	_RTL8152_SET_RX_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	addq	$28, %rsi
	callq	_clear_bit
	movq	%r15, %rdi
	callq	__rtl8152_set_rx_mode
	movq	%r13, %rdi
	callq	_napi_enable
	movq	%r15, %rdi
	callq	_netif_wake_queue
LBB0_10:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	16(%r14), %edi
	callq	_usb_autopm_put_interface
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_COALESCE_SLOW,8,3              ## @COALESCE_SLOW
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RTL8152_SET_RX_MODE,4,2        ## @RTL8152_SET_RX_MODE
	.no_dead_strip	_rtl8152_set_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8152_set_coalesce
_rtl8152_set_coalesce:                  ; @rtl8152_set_coalesce
	.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	x23, x1
	mov	x21, x0
	bl	_netdev_priv
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	x8, [x23]
Lloh2:
	adrp	x9, _COALESCE_SLOW@GOTPAGE
Lloh3:
	ldr	x9, [x9, _COALESCE_SLOW@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, 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
	ret
LBB0_6:
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_usb_autopm_get_interface
	mov	x20, x0
	tbnz	w0, #31, LBB0_5
; %bb.7:
	add	x22, x19, #20
	mov	x0, x22
	bl	_mutex_lock
	ldr	x9, [x19, #8]
	ldr	x8, [x23]
	cmp	x9, x8
	b.eq	LBB0_11
; %bb.8:
	str	x8, [x19, #8]
	mov	x0, x21
	bl	_netif_running
	cbz	x0, LBB0_11
; %bb.9:
	mov	x0, x21
	bl	_netif_carrier_ok
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_netif_stop_queue
	add	x23, x19, #24
	mov	x0, x23
	bl	_napi_disable
	ldr	x8, [x19, #40]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #32]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_rtl_start_rx
Lloh7:
	adrp	x8, _RTL8152_SET_RX_MODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RTL8152_SET_RX_MODE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, x19, #28
	bl	_clear_bit
	mov	x0, x21
	bl	__rtl8152_set_rx_mode
	mov	x0, x23
	bl	_napi_enable
	mov	x0, x21
	bl	_netif_wake_queue
LBB0_11:
	mov	x0, x22
	bl	_mutex_unlock
	ldr	w0, [x19, #16]
	bl	_usb_autopm_put_interface
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_COALESCE_SLOW,8,3              ; @COALESCE_SLOW
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RTL8152_SET_RX_MODE,4,2        ; @RTL8152_SET_RX_MODE
	.no_dead_strip	_rtl8152_set_coalesce
.subsections_via_symbols
