	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc75xx_resume
_smsc75xx_resume:                       ## @smsc75xx_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	%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	_usb_get_intfdata
	movq	%rax, %r15
	movq	8(%rax), %rax
	movq	(%rax), %rbx
	movl	(%rbx), %r12d
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_netdev_dbg
	movl	$0, (%rbx)
	movq	_SUSPEND_ALLMODES@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_5
## %bb.1:
	movq	_WUCSR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_smsc75xx_read_reg_nopm
	testl	%eax, %eax
	js	LBB0_10
## %bb.2:
	movq	_WUCSR_WUEN@GOTPCREL(%rip), %rax
	movq	_WUCSR_MPEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_WUCSR_PFDA_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_WUCSR_BCST_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_smsc75xx_write_reg_nopm
	testl	%eax, %eax
	js	LBB0_12
## %bb.3:
	movq	_PMT_CTL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_smsc75xx_read_reg_nopm
	testl	%eax, %eax
	js	LBB0_11
## %bb.4:
	movq	_PMT_CTL_WOL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	movq	_PMT_CTL_WUPS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_smsc75xx_write_reg_nopm
	testl	%eax, %eax
	js	LBB0_13
LBB0_5:
	movq	_SUSPEND_SUSPEND2@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_8
## %bb.6:
	movl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_netdev_info
	movq	_PMT_CTL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_smsc75xx_read_reg_nopm
	testl	%eax, %eax
	js	LBB0_11
## %bb.7:
	movq	_PMT_CTL_PHY_PWRUP@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_smsc75xx_write_reg_nopm
	testl	%eax, %eax
	js	LBB0_13
LBB0_8:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_smsc75xx_wait_ready
	testl	%eax, %eax
	js	LBB0_14
## %bb.9:
	movq	%r14, %rdi
	callq	_usbnet_resume
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_10:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_15
LBB0_11:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_15
LBB0_12:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_15
LBB0_13:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_15
LBB0_14:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.6(%rip), %rsi
LBB0_15:
	callq	_netdev_warn
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	_SUSPEND_ALLMODES,4,2           ## @SUSPEND_ALLMODES
	.comm	_WUCSR,4,2                      ## @WUCSR
L_.str.1:                               ## @.str.1
	.asciz	"Error reading WUCSR\n"

	.comm	_WUCSR_WUEN,4,2                 ## @WUCSR_WUEN
	.comm	_WUCSR_MPEN,4,2                 ## @WUCSR_MPEN
	.comm	_WUCSR_PFDA_EN,4,2              ## @WUCSR_PFDA_EN
	.comm	_WUCSR_BCST_EN,4,2              ## @WUCSR_BCST_EN
L_.str.2:                               ## @.str.2
	.asciz	"Error writing WUCSR\n"

	.comm	_PMT_CTL,4,2                    ## @PMT_CTL
L_.str.3:                               ## @.str.3
	.asciz	"Error reading PMT_CTL\n"

	.comm	_PMT_CTL_WOL_EN,4,2             ## @PMT_CTL_WOL_EN
	.comm	_PMT_CTL_WUPS,4,2               ## @PMT_CTL_WUPS
L_.str.4:                               ## @.str.4
	.asciz	"Error writing PMT_CTL\n"

	.comm	_SUSPEND_SUSPEND2,4,2           ## @SUSPEND_SUSPEND2
L_.str.5:                               ## @.str.5
	.asciz	"resuming from SUSPEND2\n"

	.comm	_PMT_CTL_PHY_PWRUP,4,2          ## @PMT_CTL_PHY_PWRUP
L_.str.6:                               ## @.str.6
	.asciz	"device not ready in smsc75xx_resume\n"

	.no_dead_strip	_smsc75xx_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc75xx_resume
_smsc75xx_resume:                       ; @smsc75xx_resume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	bl	_usb_get_intfdata
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
	ldr	w22, [x21]
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_netdev_dbg
	str	wzr, [x21]
Lloh2:
	adrp	x8, _SUSPEND_ALLMODES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SUSPEND_ALLMODES@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_5
; %bb.1:
Lloh5:
	adrp	x23, _WUCSR@GOTPAGE
Lloh6:
	ldr	x23, [x23, _WUCSR@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	_smsc75xx_read_reg_nopm
	tbnz	w0, #31, LBB0_10
; %bb.2:
Lloh7:
	adrp	x8, _WUCSR_WUEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WUCSR_WUEN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _WUCSR_MPEN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _WUCSR_MPEN@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _WUCSR_PFDA_EN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WUCSR_PFDA_EN@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh16:
	adrp	x9, _WUCSR_BCST_EN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _WUCSR_BCST_EN@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_smsc75xx_write_reg_nopm
	tbnz	w0, #31, LBB0_12
; %bb.3:
Lloh19:
	adrp	x23, _PMT_CTL@GOTPAGE
Lloh20:
	ldr	x23, [x23, _PMT_CTL@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	_smsc75xx_read_reg_nopm
	tbnz	w0, #31, LBB0_11
; %bb.4:
Lloh21:
	adrp	x8, _PMT_CTL_WOL_EN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PMT_CTL_WOL_EN@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
Lloh24:
	adrp	x9, _PMT_CTL_WUPS@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PMT_CTL_WUPS@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_smsc75xx_write_reg_nopm
	tbnz	w0, #31, LBB0_13
LBB0_5:
Lloh27:
	adrp	x8, _SUSPEND_SUSPEND2@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SUSPEND_SUSPEND2@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.6:
	ldr	w0, [x19]
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_netdev_info
Lloh32:
	adrp	x22, _PMT_CTL@GOTPAGE
Lloh33:
	ldr	x22, [x22, _PMT_CTL@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_smsc75xx_read_reg_nopm
	tbnz	w0, #31, LBB0_11
; %bb.7:
Lloh34:
	adrp	x8, _PMT_CTL_PHY_PWRUP@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PMT_CTL_PHY_PWRUP@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_smsc75xx_write_reg_nopm
	tbnz	w0, #31, LBB0_13
LBB0_8:
	mov	x0, x19
	mov	w1, #1
	bl	_smsc75xx_wait_ready
	tbnz	w0, #31, LBB0_14
; %bb.9:
	mov	x0, x20
	bl	_usbnet_resume
	mov	x21, x0
	b	LBB0_16
LBB0_10:
	mov	x21, x0
	ldr	w0, [x19]
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_11:
	mov	x21, x0
	ldr	w0, [x19]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_12:
	mov	x21, x0
	ldr	w0, [x19]
Lloh41:
	adrp	x1, l_.str.2@PAGE
Lloh42:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_13:
	mov	x21, x0
	ldr	w0, [x19]
Lloh43:
	adrp	x1, l_.str.4@PAGE
Lloh44:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_14:
	mov	x21, x0
	ldr	w0, [x19]
Lloh45:
	adrp	x1, l_.str.6@PAGE
Lloh46:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_15:
	bl	_netdev_warn
LBB0_16:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"resume suspend_flags=0x%02x\n"

	.comm	_SUSPEND_ALLMODES,4,2           ; @SUSPEND_ALLMODES
	.comm	_WUCSR,4,2                      ; @WUCSR
l_.str.1:                               ; @.str.1
	.asciz	"Error reading WUCSR\n"

	.comm	_WUCSR_WUEN,4,2                 ; @WUCSR_WUEN
	.comm	_WUCSR_MPEN,4,2                 ; @WUCSR_MPEN
	.comm	_WUCSR_PFDA_EN,4,2              ; @WUCSR_PFDA_EN
	.comm	_WUCSR_BCST_EN,4,2              ; @WUCSR_BCST_EN
l_.str.2:                               ; @.str.2
	.asciz	"Error writing WUCSR\n"

	.comm	_PMT_CTL,4,2                    ; @PMT_CTL
l_.str.3:                               ; @.str.3
	.asciz	"Error reading PMT_CTL\n"

	.comm	_PMT_CTL_WOL_EN,4,2             ; @PMT_CTL_WOL_EN
	.comm	_PMT_CTL_WUPS,4,2               ; @PMT_CTL_WUPS
l_.str.4:                               ; @.str.4
	.asciz	"Error writing PMT_CTL\n"

	.comm	_SUSPEND_SUSPEND2,4,2           ; @SUSPEND_SUSPEND2
l_.str.5:                               ; @.str.5
	.asciz	"resuming from SUSPEND2\n"

	.comm	_PMT_CTL_PHY_PWRUP,4,2          ; @PMT_CTL_PHY_PWRUP
l_.str.6:                               ; @.str.6
	.asciz	"device not ready in smsc75xx_resume\n"

	.no_dead_strip	_smsc75xx_resume
.subsections_via_symbols
