	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_print_bar                      ## -- Begin function print_bar
	.p2align	4, 0x90
_print_bar:                             ## @print_bar
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movl	(%rsi), %eax
	movl	%eax, -24(%rbp)
	movl	%ecx, -48(%rbp)
	movq	_PCIOCGETBAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_7
## %bb.1:
	movl	-44(%rbp), %edi
	callq	_PCI_BAR_IO
	movl	-44(%rbp), %r9d
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_PCIM_BAR_IO_BASE@GOTPCREL(%rip), %rax
	andl	(%rax), %r9d
	movl	$32, %r8d
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_6
LBB0_3:
	movq	_PCIM_BAR_MEM_PREFETCH@GOTPCREL(%rip), %rax
	testl	%r9d, (%rax)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	_PCIM_BAR_MEM_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r9d, %eax
	addl	$-128, %eax
	movl	$-1, %r8d
	cmpl	$2, %eax
	ja	LBB0_5
## %bb.4:
	cltq
	leaq	l_switch.table.print_bar(%rip), %rdx
	movl	(%rdx,%rax,4), %r8d
LBB0_5:
	andl	$-16, %r9d
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_printf
	movslq	-32(%rbp), %rsi
	cmpq	$0, -40(%rbp)
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIOCGETBAR,4,2                ## @PCIOCGETBAR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I/O Port"

	.comm	_PCIM_BAR_IO_BASE,4,2           ## @PCIM_BAR_IO_BASE
	.comm	_PCIM_BAR_MEM_PREFETCH,4,2      ## @PCIM_BAR_MEM_PREFETCH
L_.str.1:                               ## @.str.1
	.asciz	"Prefetchable Memory"

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

	.comm	_PCIM_BAR_MEM_TYPE,4,2          ## @PCIM_BAR_MEM_TYPE
L_.str.3:                               ## @.str.3
	.asciz	"    %s[%02x] = type %s, range %2d, base %#jx, "

L_.str.4:                               ## @.str.4
	.asciz	"size %ju, %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"enabled"

L_.str.6:                               ## @.str.6
	.asciz	"disabled"

	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.print_bar
l_switch.table.print_bar:
	.long	64                              ## 0x40
	.long	32                              ## 0x20
	.long	20                              ## 0x14

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_print_bar                      ; -- Begin function print_bar
	.p2align	2
_print_bar:                             ; @print_bar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x3
	mov	x19, x2
	ldr	w8, [x1]
	str	w8, [sp, #56]
	str	w3, [sp, #32]
Lloh0:
	adrp	x8, _PCIOCGETBAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIOCGETBAR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #32
	bl	_ioctl
	tbnz	x0, #63, LBB0_8
; %bb.1:
	ldr	w0, [sp, #36]
	bl	_PCI_BAR_IO
	ldr	w10, [sp, #36]
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _PCIM_BAR_IO_BASE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCIM_BAR_IO_BASE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w10, w8, w10
	mov	w9, #32
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
	b	LBB0_7
LBB0_3:
Lloh8:
	adrp	x8, _PCIM_BAR_MEM_PREFETCH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCIM_BAR_MEM_PREFETCH@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, l_.str.1@PAGE
Lloh12:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh13:
	adrp	x11, l_.str.2@PAGE
Lloh14:
	add	x11, x11, l_.str.2@PAGEOFF
	tst	w8, w10
	csel	x8, x11, x9, eq
Lloh15:
	adrp	x9, _PCIM_BAR_MEM_TYPE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PCIM_BAR_MEM_TYPE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w9, w9, w10
	sub	w9, w9, #128
	cmp	w9, #2
	b.hi	LBB0_5
; %bb.4:
Lloh18:
	adrp	x11, l_switch.table.print_bar@PAGE
Lloh19:
	add	x11, x11, l_switch.table.print_bar@PAGEOFF
	ldr	w9, [x11, w9, sxtw #2]
	b	LBB0_6
LBB0_5:
	mov	w9, #-1
LBB0_6:
	and	w10, w10, #0xfffffff0
LBB0_7:
	stp	x9, x10, [sp, #16]
	stp	x20, x8, [sp]
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_printf
	ldrsw	x1, [sp, #48]
	ldr	x8, [sp, #40]
Lloh22:
	adrp	x9, l_.str.5@PAGE
Lloh23:
	add	x9, x9, l_.str.5@PAGEOFF
Lloh24:
	adrp	x10, l_.str.6@PAGE
Lloh25:
	add	x10, x10, l_.str.6@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh26:
	adrp	x0, l_.str.4@PAGE
Lloh27:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIOCGETBAR,4,2                ; @PCIOCGETBAR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I/O Port"

	.comm	_PCIM_BAR_IO_BASE,4,2           ; @PCIM_BAR_IO_BASE
	.comm	_PCIM_BAR_MEM_PREFETCH,4,2      ; @PCIM_BAR_MEM_PREFETCH
l_.str.1:                               ; @.str.1
	.asciz	"Prefetchable Memory"

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

	.comm	_PCIM_BAR_MEM_TYPE,4,2          ; @PCIM_BAR_MEM_TYPE
l_.str.3:                               ; @.str.3
	.asciz	"    %s[%02x] = type %s, range %2d, base %#jx, "

l_.str.4:                               ; @.str.4
	.asciz	"size %ju, %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"enabled"

l_.str.6:                               ; @.str.6
	.asciz	"disabled"

	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.print_bar
l_switch.table.print_bar:
	.long	64                              ; 0x40
	.long	32                              ; 0x20
	.long	20                              ; 0x14

.subsections_via_symbols
