	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msi_config_show
_msi_config_show:                       ## @msi_config_show
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	leaq	-12(%rbp), %rdx
	movq	%rsi, %rdi
	movl	$82, %esi
	callq	_pci_read_config_word
	testb	$1, -12(%rbp)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_cobalt_info
	movb	-12(%rbp), %al
	movl	%eax, %ecx
	shrb	%cl
	andb	$7, %cl
	movl	$1, %edx
	movl	$1, %esi
	shll	%cl, %esi
	shrb	$4, %al
	andb	$7, %al
	movl	%eax, %ecx
	shll	%cl, %edx
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_cobalt_info
	testb	$-128, -12(%rbp)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_cobalt_info
LBB0_2:
	leaq	-16(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$84, %esi
	callq	_pci_read_config_dword
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$88, %esi
	callq	_pci_read_config_dword
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$92, %esi
	callq	_pci_read_config_word
	testb	$-128, -12(%rbp)
	jne	LBB0_3
## %bb.4:
	movl	-16(%rbp), %esi
	movl	-20(%rbp), %edx
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_cobalt_info
	jmp	LBB0_5
LBB0_3:
	movl	-24(%rbp), %esi
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %ecx
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_cobalt_info
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MSI %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"enable"

L_.str.2:                               ## @.str.2
	.asciz	"disable"

L_.str.3:                               ## @.str.3
	.asciz	"MSI multiple message: Capable %u. Enable %u\n"

L_.str.4:                               ## @.str.4
	.asciz	"MSI: 64-bit address capable\n"

L_.str.5:                               ## @.str.5
	.asciz	"MSI: Address 0x%08x%08x. Data 0x%04x\n"

L_.str.6:                               ## @.str.6
	.asciz	"MSI: Address 0x%08x. Data 0x%04x\n"

	.no_dead_strip	_msi_config_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msi_config_show
_msi_config_show:                       ; @msi_config_show
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	sub	x2, x29, #20
	mov	x0, x1
	mov	w1, #82
	bl	_pci_read_config_word
	ldur	w8, [x29, #-20]
Lloh0:
	adrp	x9, l_.str.1@PAGE
Lloh1:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh2:
	adrp	x10, l_.str.2@PAGE
Lloh3:
	add	x10, x10, l_.str.2@PAGEOFF
	tst	w8, #0x1
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_cobalt_info
	ldur	w8, [x29, #-20]
	ubfx	w9, w8, #1, #3
	mov	w10, #1
	lsl	w9, w10, w9
	ubfx	w8, w8, #4, #3
	lsl	w8, w10, w8
	stp	x9, x8, [sp]
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_cobalt_info
	ldurb	w8, [x29, #-20]
	tbz	w8, #7, LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_cobalt_info
LBB0_2:
	sub	x2, x29, #28
	mov	x0, x19
	mov	w1, #84
	bl	_pci_read_config_dword
	add	x2, sp, #32
	mov	x0, x19
	mov	w1, #88
	bl	_pci_read_config_dword
	sub	x2, x29, #24
	mov	x0, x19
	mov	w1, #92
	bl	_pci_read_config_word
	ldurb	w8, [x29, #-20]
	tbnz	w8, #7, LBB0_4
; %bb.3:
	ldp	w8, w9, [x29, #-28]
	stp	x8, x9, [sp]
Lloh10:
	adrp	x0, l_.str.6@PAGE
Lloh11:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldr	w8, [sp, #32]
	ldp	w9, w10, [x29, #-28]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_5:
	bl	_cobalt_info
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MSI %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"enable"

l_.str.2:                               ; @.str.2
	.asciz	"disable"

l_.str.3:                               ; @.str.3
	.asciz	"MSI multiple message: Capable %u. Enable %u\n"

l_.str.4:                               ; @.str.4
	.asciz	"MSI: 64-bit address capable\n"

l_.str.5:                               ; @.str.5
	.asciz	"MSI: Address 0x%08x%08x. Data 0x%04x\n"

l_.str.6:                               ; @.str.6
	.asciz	"MSI: Address 0x%08x. Data 0x%04x\n"

	.no_dead_strip	_msi_config_show
.subsections_via_symbols
