	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function typhoon_get_drvinfo
_typhoon_get_drvinfo:                   ## @typhoon_get_drvinfo
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	8(%rax), %r14
	xorl	%eax, %eax
	callq	_smp_rmb
	movq	(%rbx), %rax
	movq	_Sleeping@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	12(%r15), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_2:
	movq	_TYPHOON_CMD_READ_VERSIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	callq	_INIT_COMMAND_WITH_RESPONSE
	leaq	-56(%rbp), %r8
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$3, %ecx
	callq	_typhoon_issue_command
	testq	%rax, %rax
	js	LBB0_4
## %bb.3:
	movl	-56(%rbp), %edi
	callq	_le32_to_cpu
	movl	12(%r15), %edi
	movl	%eax, %ecx
	sarl	$24, %ecx
	movl	%eax, %r8d
	shrl	$12, %r8d
	andl	$4095, %r8d                     ## imm = 0xFFF
	andl	$4095, %eax                     ## imm = 0xFFF
	leaq	L_.str.2(%rip), %rdx
	movl	$32, %esi
	movl	%eax, %r9d
	callq	_snprintf
	jmp	LBB0_6
LBB0_4:
	movl	12(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	callq	_strcpy
LBB0_6:
	movl	8(%r15), %edi
	movq	_DRV_MODULE_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_strcpy
	movl	4(%r15), %edi
	movq	_DRV_MODULE_VERSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_strcpy
	movl	(%r15), %ebx
	movq	%r14, %rdi
	callq	_pci_name
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_strcpy
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_Sleeping,8,3                   ## @Sleeping
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sleep image"

	.comm	_TYPHOON_CMD_READ_VERSIONS,4,2  ## @TYPHOON_CMD_READ_VERSIONS
L_.str.1:                               ## @.str.1
	.asciz	"Unknown runtime"

L_.str.2:                               ## @.str.2
	.asciz	"%02x.%03x.%03x"

	.comm	_DRV_MODULE_NAME,8,3            ## @DRV_MODULE_NAME
	.comm	_DRV_MODULE_VERSION,8,3         ## @DRV_MODULE_VERSION
	.no_dead_strip	_typhoon_get_drvinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function typhoon_get_drvinfo
_typhoon_get_drvinfo:                   ; @typhoon_get_drvinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_netdev_priv
	mov	x21, x0
	ldr	x20, [x0, #8]
	bl	_smp_rmb
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _Sleeping@GOTPAGE
Lloh4:
	ldr	x9, [x9, _Sleeping@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19, #12]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:
Lloh8:
	adrp	x8, _TYPHOON_CMD_READ_VERSIONS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TYPHOON_CMD_READ_VERSIONS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_INIT_COMMAND_WITH_RESPONSE
	mov	x2, sp
	add	x4, sp, #8
	mov	x0, x21
	mov	w1, #1
	mov	w3, #3
	bl	_typhoon_issue_command
	tbnz	x0, #63, LBB0_4
; %bb.3:
	ldr	w0, [sp, #8]
	bl	_le32_to_cpu
	ldr	w8, [x19, #12]
	asr	w3, w0, #24
	ubfx	w4, w0, #12, #12
	and	w5, w0, #0xfff
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x8
	mov	w1, #32
	bl	_snprintf
	b	LBB0_6
LBB0_4:
	ldr	w0, [x19, #12]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	bl	_strcpy
LBB0_6:
	ldr	w0, [x19, #8]
Lloh15:
	adrp	x8, _DRV_MODULE_NAME@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DRV_MODULE_NAME@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
	bl	_strcpy
	ldr	w0, [x19, #4]
Lloh18:
	adrp	x8, _DRV_MODULE_VERSION@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DRV_MODULE_VERSION@GOTPAGEOFF]
Lloh20:
	ldr	x1, [x8]
	bl	_strcpy
	ldr	w19, [x19]
	mov	x0, x20
	bl	_pci_name
	mov	x1, x0
	mov	x0, x19
	bl	_strcpy
	ldr	x8, [sp, #24]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	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
	add	sp, sp, #80
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_Sleeping,8,3                   ; @Sleeping
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sleep image"

	.comm	_TYPHOON_CMD_READ_VERSIONS,4,2  ; @TYPHOON_CMD_READ_VERSIONS
l_.str.1:                               ; @.str.1
	.asciz	"Unknown runtime"

l_.str.2:                               ; @.str.2
	.asciz	"%02x.%03x.%03x"

	.comm	_DRV_MODULE_NAME,8,3            ; @DRV_MODULE_NAME
	.comm	_DRV_MODULE_VERSION,8,3         ; @DRV_MODULE_VERSION
	.no_dead_strip	_typhoon_get_drvinfo
.subsections_via_symbols
