	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_disable_bars
_pci_disable_bars:                      ## @pci_disable_bars
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movl	(%rsi), %eax
	movl	%eax, -36(%rbp)
	movq	_PCI_CFG_ROM_BAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	$4, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	_PCIOCWRITE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-56(%rbp), %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.1:
	movl	(%rbx), %eax
	movl	%eax, -36(%rbp)
	movq	_PCI_CFG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	$2, -56(%rbp)
	movq	(%r14), %rax
	movq	%rax, -48(%rbp)
	movl	(%r12), %esi
	leaq	-56(%rbp), %rdx
	movl	%r15d, %edi
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_CFG_ROM_BAR,4,2            ## @PCI_CFG_ROM_BAR
	.comm	_PCIOCWRITE,4,2                 ## @PCIOCWRITE
	.comm	_PCI_CFG_CMD,4,2                ## @PCI_CFG_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioctl"

	.no_dead_strip	_pci_disable_bars
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_disable_bars
_pci_disable_bars:                      ; @pci_disable_bars
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _PCI_CFG_ROM_BAR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_CFG_ROM_BAR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
	mov	w8, #4
	str	w8, [sp, #8]
	str	xzr, [sp, #16]
Lloh3:
	adrp	x22, _PCIOCWRITE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PCIOCWRITE@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #8
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _PCI_CFG_CMD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PCI_CFG_CMD@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
	mov	w8, #2
	str	w8, [sp, #8]
	ldr	x8, [x20]
	str	x8, [sp, #16]
	ldr	w1, [x22]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_3
LBB0_2:
	mov	w0, #0
	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_3:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	b	LBB0_2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_CFG_ROM_BAR,4,2            ; @PCI_CFG_ROM_BAR
	.comm	_PCIOCWRITE,4,2                 ; @PCIOCWRITE
	.comm	_PCI_CFG_CMD,4,2                ; @PCI_CFG_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioctl"

	.no_dead_strip	_pci_disable_bars
.subsections_via_symbols
