	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dump_regs
_dump_regs:                             ## @dump_regs
	.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	%rcx, %rbx
	movl	%edx, %r14d
	movq	%rsi, %r15
	movl	%edi, %r12d
	movq	_REGDUMP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, -40(%rbp)
	callq	_malloc
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movq	_CHELSIO_IFCONF_GETREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_doit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_4:
	movl	-56(%rbp), %ecx
	movl	%ecx, %edx
	andl	$1023, %edx                     ## imm = 0x3FF
	cmpl	$2, %edx
	ja	LBB0_6
## %bb.5:
	movq	-48(%rbp), %rcx
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_dump_regs_t2
	jmp	LBB0_7
LBB0_6:
	shrl	$10, %ecx
	andl	$63, %ecx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	xorl	%eax, %eax
LBB0_7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REGDUMP_SIZE,4,2               ## @REGDUMP_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't malloc"

	.comm	_CHELSIO_IFCONF_GETREGS,4,2     ## @CHELSIO_IFCONF_GETREGS
L_.str.1:                               ## @.str.1
	.asciz	"can't read registers"

L_.str.2:                               ## @.str.2
	.asciz	"unknown card type %d.%d"

	.no_dead_strip	_dump_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dump_regs
_dump_regs:                             ; @dump_regs
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _REGDUMP_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REGDUMP_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	w0, [sp, #24]
	bl	_malloc
	str	x0, [sp, #16]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
Lloh5:
	adrp	x8, _CHELSIO_IFCONF_GETREGS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CHELSIO_IFCONF_GETREGS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x22
	bl	_doit
	cbz	x0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	ldr	w8, [sp, #8]
	and	w2, w8, #0x3ff
	cmp	w2, #2
	b.hi	LBB0_6
; %bb.5:
	ldr	x3, [sp, #16]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_dump_regs_t2
	b	LBB0_7
LBB0_6:
	ubfx	w3, w8, #10, #6
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
	mov	w0, #0
LBB0_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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_REGDUMP_SIZE,4,2               ; @REGDUMP_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't malloc"

	.comm	_CHELSIO_IFCONF_GETREGS,4,2     ; @CHELSIO_IFCONF_GETREGS
l_.str.1:                               ; @.str.1
	.asciz	"can't read registers"

l_.str.2:                               ; @.str.2
	.asciz	"unknown card type %d.%d"

	.no_dead_strip	_dump_regs
.subsections_via_symbols
