	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc95xx_resume
_smsc95xx_resume:                       ## @smsc95xx_resume
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_usb_get_intfdata
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	movq	8(%r15), %rax
	movq	(%rax), %rbx
	movl	(%rbx), %r12d
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_netdev_dbg
	movl	$0, (%rbx)
	addq	$4, %rbx
	movq	_CARRIER_CHECK_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_schedule_delayed_work
	movq	_SUSPEND_ALLMODES@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_5
## %bb.1:
	movq	_WUCSR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_smsc95xx_read_reg_nopm
	testl	%eax, %eax
	js	LBB0_10
## %bb.2:
	movq	_WUCSR_WAKE_EN_@GOTPCREL(%rip), %rax
	movq	_WUCSR_MPEN_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	notl	%edx
	andl	-36(%rbp), %edx
	movl	%edx, -36(%rbp)
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_smsc95xx_write_reg_nopm
	testl	%eax, %eax
	js	LBB0_10
## %bb.3:
	movq	_PM_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_smsc95xx_read_reg_nopm
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	movq	_PM_CTL_WOL_EN_@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-36(%rbp), %edx
	movq	_PM_CTL_WUPS_@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -36(%rbp)
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_smsc95xx_write_reg_nopm
	testl	%eax, %eax
	js	LBB0_10
LBB0_5:
	movq	%r14, %rdi
	callq	_usbnet_resume
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_11
## %bb.6:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_warn
	jmp	LBB0_11
LBB0_10:
	movl	%eax, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"resume suspend_flags=0x%02x\n"

	.comm	_CARRIER_CHECK_DELAY,4,2        ## @CARRIER_CHECK_DELAY
	.comm	_SUSPEND_ALLMODES,4,2           ## @SUSPEND_ALLMODES
	.comm	_WUCSR,4,2                      ## @WUCSR
	.comm	_WUCSR_WAKE_EN_,4,2             ## @WUCSR_WAKE_EN_
	.comm	_WUCSR_MPEN_,4,2                ## @WUCSR_MPEN_
	.comm	_PM_CTRL,4,2                    ## @PM_CTRL
	.comm	_PM_CTL_WOL_EN_,4,2             ## @PM_CTL_WOL_EN_
	.comm	_PM_CTL_WUPS_,4,2               ## @PM_CTL_WUPS_
L_.str.1:                               ## @.str.1
	.asciz	"usbnet_resume error\n"

	.no_dead_strip	_smsc95xx_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc95xx_resume
_smsc95xx_resume:                       ; @smsc95xx_resume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	bl	_usb_get_intfdata
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x8, [x19, #8]
	ldr	x21, [x8]
	ldr	w22, [x21]
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_netdev_dbg
	str	wzr, [x21], #4
Lloh2:
	adrp	x8, _CARRIER_CHECK_DELAY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CARRIER_CHECK_DELAY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_schedule_delayed_work
Lloh5:
	adrp	x8, _SUSPEND_ALLMODES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SUSPEND_ALLMODES@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_5
; %bb.1:
Lloh8:
	adrp	x22, _WUCSR@GOTPAGE
Lloh9:
	ldr	x22, [x22, _WUCSR@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_smsc95xx_read_reg_nopm
	tbnz	w0, #31, LBB0_7
; %bb.2:
Lloh10:
	adrp	x8, _WUCSR_WAKE_EN_@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WUCSR_WAKE_EN_@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _WUCSR_MPEN_@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WUCSR_MPEN_@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_smsc95xx_write_reg_nopm
	tbnz	w0, #31, LBB0_7
; %bb.3:
Lloh16:
	adrp	x22, _PM_CTRL@GOTPAGE
Lloh17:
	ldr	x22, [x22, _PM_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_smsc95xx_read_reg_nopm
	tbnz	w0, #31, LBB0_7
; %bb.4:
Lloh18:
	adrp	x8, _PM_CTL_WOL_EN_@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PM_CTL_WOL_EN_@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
Lloh21:
	adrp	x9, _PM_CTL_WUPS_@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PM_CTL_WUPS_@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_smsc95xx_write_reg_nopm
	tbnz	w0, #31, LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_usbnet_resume
	mov	x21, x0
	tbz	w0, #31, LBB0_8
; %bb.6:
	ldr	w0, [x19]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_warn
	b	LBB0_8
LBB0_7:
	mov	x21, x0
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"resume suspend_flags=0x%02x\n"

	.comm	_CARRIER_CHECK_DELAY,4,2        ; @CARRIER_CHECK_DELAY
	.comm	_SUSPEND_ALLMODES,4,2           ; @SUSPEND_ALLMODES
	.comm	_WUCSR,4,2                      ; @WUCSR
	.comm	_WUCSR_WAKE_EN_,4,2             ; @WUCSR_WAKE_EN_
	.comm	_WUCSR_MPEN_,4,2                ; @WUCSR_MPEN_
	.comm	_PM_CTRL,4,2                    ; @PM_CTRL
	.comm	_PM_CTL_WOL_EN_,4,2             ; @PM_CTL_WOL_EN_
	.comm	_PM_CTL_WUPS_,4,2               ; @PM_CTL_WUPS_
l_.str.1:                               ; @.str.1
	.asciz	"usbnet_resume error\n"

	.no_dead_strip	_smsc95xx_resume
.subsections_via_symbols
