	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8152_set_wol
_rtl8152_set_wol:                       ## @rtl8152_set_wol
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_rtl_can_wakeup
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_WAKE_ANY@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	notl	%eax
	testl	%eax, (%r14)
	je	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	4(%r15), %edi
	callq	_usb_autopm_get_interface
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movq	%r15, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	___rtl_set_wol
	movl	(%r13), %eax
	andl	(%r14), %eax
	movl	%eax, (%r15)
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	4(%r15), %edi
	callq	_usb_autopm_put_interface
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_WAKE_ANY,4,2                   ## @WAKE_ANY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rtl8152_set_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8152_set_wol
_rtl8152_set_wol:                       ; @rtl8152_set_wol
	.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, x1
	bl	_netdev_priv
	mov	x19, x0
	bl	_rtl_can_wakeup
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x20]
Lloh0:
	adrp	x23, _WAKE_ANY@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WAKE_ANY@GOTPAGEOFF]
	ldr	w9, [x23]
	bics	wzr, w8, w9
	b.eq	LBB0_6
; %bb.2:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	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
LBB0_6:
	ldr	w0, [x19, #4]
	bl	_usb_autopm_get_interface
	mov	x21, x0
	tbnz	w0, #31, LBB0_5
; %bb.7:
	add	x22, x19, #8
	mov	x0, x22
	bl	_mutex_lock
	ldr	w1, [x20]
	mov	x0, x19
	bl	___rtl_set_wol
	ldr	w8, [x20]
	ldr	w9, [x23]
	and	w8, w9, w8
	str	w8, [x19]
	mov	x0, x22
	bl	_mutex_unlock
	ldr	w0, [x19, #4]
	bl	_usb_autopm_put_interface
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_WAKE_ANY,4,2                   ; @WAKE_ANY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rtl8152_set_wol
.subsections_via_symbols
