	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smc91c92_resume
_smc91c92_resume:                       ## @smc91c92_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_MANFID_MEGAHERTZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	8(%rbx), %rcx
	movq	_PRODID_MEGAHERTZ_EM3288@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_mhz_3288_power
	movq	(%rbx), %rax
LBB0_3:
	movq	_MANFID_MOTOROLA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_mot_config
	movq	(%rbx), %rax
LBB0_5:
	movq	_MANFID_OSITECH@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_8
## %bb.6:
	movq	8(%rbx), %rcx
	movq	_PRODID_OSITECH_SEVEN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_9
## %bb.7:
	movl	(%r14), %eax
	movq	_OSITECH_AUI_PWR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	(%rax,%rcx), %esi
	addl	$-16, %esi
	movl	$768, %edi                      ## imm = 0x300
	callq	_set_bits
	movl	(%r14), %eax
	movq	_OSITECH_RESET_ISR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	(%rax,%rcx), %esi
	addl	$-16, %esi
	movl	$768, %edi                      ## imm = 0x300
	callq	_set_bits
	movq	(%rbx), %rax
	movq	(%r12), %rcx
LBB0_8:
	cmpq	%rcx, %rax
	jne	LBB0_10
LBB0_9:
	movq	8(%rbx), %rcx
	movq	_PRODID_OSITECH_SEVEN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_12
LBB0_10:
	movq	_MANFID_PSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.11:
	movq	8(%rbx), %rax
	movq	_PRODID_PSION_NET100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
LBB0_12:
	movq	%r15, %rdi
	callq	_osi_load_firmware
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	jmp	LBB0_16
LBB0_14:
	xorl	%ebx, %ebx
	cmpq	$0, (%r15)
	je	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	callq	_smc_reset
	movq	%r14, %rdi
	callq	_netif_device_attach
LBB0_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MANFID_MEGAHERTZ,8,3           ## @MANFID_MEGAHERTZ
	.comm	_PRODID_MEGAHERTZ_EM3288,8,3    ## @PRODID_MEGAHERTZ_EM3288
	.comm	_MANFID_MOTOROLA,8,3            ## @MANFID_MOTOROLA
	.comm	_MANFID_OSITECH,8,3             ## @MANFID_OSITECH
	.comm	_PRODID_OSITECH_SEVEN,8,3       ## @PRODID_OSITECH_SEVEN
	.comm	_OSITECH_AUI_PWR,4,2            ## @OSITECH_AUI_PWR
	.comm	_OSITECH_RESET_ISR,4,2          ## @OSITECH_RESET_ISR
	.comm	_MANFID_PSION,8,3               ## @MANFID_PSION
	.comm	_PRODID_PSION_NET100,8,3        ## @PRODID_PSION_NET100
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to load firmware\n"

	.no_dead_strip	_smc91c92_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smc91c92_resume
_smc91c92_resume:                       ; @smc91c92_resume
	.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, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_netdev_priv
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MANFID_MEGAHERTZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MANFID_MEGAHERTZ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x9, [x21, #8]
Lloh3:
	adrp	x10, _PRODID_MEGAHERTZ_EM3288@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PRODID_MEGAHERTZ_EM3288@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_mhz_3288_power
	ldr	x8, [x21]
LBB0_3:
Lloh6:
	adrp	x9, _MANFID_MOTOROLA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MANFID_MOTOROLA@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_mot_config
	ldr	x8, [x21]
LBB0_5:
Lloh9:
	adrp	x23, _MANFID_OSITECH@GOTPAGE
Lloh10:
	ldr	x23, [x23, _MANFID_OSITECH@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh11:
	adrp	x22, _PRODID_OSITECH_SEVEN@GOTPAGE
Lloh12:
	ldr	x22, [x22, _PRODID_OSITECH_SEVEN@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	ldr	x9, [x21, #8]
	ldr	x10, [x22]
	cmp	x9, x10
	b.eq	LBB0_9
; %bb.7:
	ldr	w8, [x19]
Lloh13:
	adrp	x9, _OSITECH_AUI_PWR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _OSITECH_AUI_PWR@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	add	w8, w8, w9
	sub	w1, w8, #16
	mov	w0, #768
	bl	_set_bits
	ldr	w8, [x19]
Lloh16:
	adrp	x9, _OSITECH_RESET_ISR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _OSITECH_RESET_ISR@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	add	w8, w8, w9
	sub	w1, w8, #16
	mov	w0, #768
	bl	_set_bits
	ldr	x8, [x21]
	ldr	x9, [x23]
LBB0_8:
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_9:
	ldr	x9, [x21, #8]
	ldr	x10, [x22]
	cmp	x9, x10
	b.eq	LBB0_12
LBB0_10:
Lloh19:
	adrp	x9, _MANFID_PSION@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MANFID_PSION@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.11:
	ldr	x8, [x21, #8]
Lloh22:
	adrp	x9, _PRODID_PSION_NET100@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PRODID_PSION_NET100@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
LBB0_12:
	mov	x0, x20
	bl	_osi_load_firmware
	cbz	w0, LBB0_14
; %bb.13:
	mov	x21, x0
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	b	LBB0_17
LBB0_14:
	ldr	x8, [x20]
	cbz	x8, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_smc_reset
	mov	x0, x19
	bl	_netif_device_attach
LBB0_16:
	mov	w21, #0
LBB0_17:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MANFID_MEGAHERTZ,8,3           ; @MANFID_MEGAHERTZ
	.comm	_PRODID_MEGAHERTZ_EM3288,8,3    ; @PRODID_MEGAHERTZ_EM3288
	.comm	_MANFID_MOTOROLA,8,3            ; @MANFID_MOTOROLA
	.comm	_MANFID_OSITECH,8,3             ; @MANFID_OSITECH
	.comm	_PRODID_OSITECH_SEVEN,8,3       ; @PRODID_OSITECH_SEVEN
	.comm	_OSITECH_AUI_PWR,4,2            ; @OSITECH_AUI_PWR
	.comm	_OSITECH_RESET_ISR,4,2          ; @OSITECH_RESET_ISR
	.comm	_MANFID_PSION,8,3               ; @MANFID_PSION
	.comm	_PRODID_PSION_NET100,8,3        ; @PRODID_PSION_NET100
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to load firmware\n"

	.no_dead_strip	_smc91c92_resume
.subsections_via_symbols
