	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_enable_bars
_pci_enable_bars:                       ## @pci_enable_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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r15d
	cmpl	$0, (%rsi)
	jne	LBB0_4
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movl	4(%rsi), %eax
	movl	%eax, -36(%rbp)
	movq	_PCI_CFG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	$2, -48(%rbp)
	movq	_PCIOCREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.2:
	movslq	-44(%rbp), %rax
	movq	%rax, (%r12)
	movq	_PCI_CMD_MEM_SPACE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	movl	%ecx, -44(%rbp)
	movq	_PCIOCWRITE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-48(%rbp), %rdx
	movl	%r14d, %edi
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.3:
	movl	4(%rbx), %eax
	movl	%eax, -36(%rbp)
	movq	_PCI_CFG_ROM_BAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	$4, -48(%rbp)
	movq	_base_addr@GOTPCREL(%rip), %rax
	movq	_PCI_ROM_ACTIVATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -44(%rbp)
	movl	(%r12), %esi
	leaq	-48(%rbp), %rdx
	movl	%r14d, %edi
	callq	_ioctl
	xorl	%r15d, %r15d
	cmpl	$-1, %eax
	sete	%r15b
	negl	%r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_CFG_CMD,4,2                ## @PCI_CFG_CMD
	.comm	_PCIOCREAD,4,2                  ## @PCIOCREAD
	.comm	_PCI_CMD_MEM_SPACE,4,2          ## @PCI_CMD_MEM_SPACE
	.comm	_PCIOCWRITE,4,2                 ## @PCIOCWRITE
	.comm	_PCI_CFG_ROM_BAR,4,2            ## @PCI_CFG_ROM_BAR
	.comm	_base_addr,4,2                  ## @base_addr
	.comm	_PCI_ROM_ACTIVATE,4,2           ## @PCI_ROM_ACTIVATE
	.no_dead_strip	_pci_enable_bars
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_enable_bars
_pci_enable_bars:                       ; @pci_enable_bars
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x1]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_5
LBB0_2:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1, #4]
	str	w8, [sp, #12]
Lloh0:
	adrp	x8, _PCI_CFG_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_CFG_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #2
	str	w8, [sp, #8]
	str	w9, [sp]
Lloh3:
	adrp	x8, _PCIOCREAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCIOCREAD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.3:
	ldrsw	x8, [sp, #4]
	str	x8, [x21]
Lloh6:
	adrp	x9, _PCI_CMD_MEM_SPACE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PCI_CMD_MEM_SPACE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #4]
Lloh9:
	adrp	x21, _PCIOCWRITE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _PCIOCWRITE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x2, sp
	mov	x0, x19
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x20, #4]
Lloh11:
	adrp	x9, _PCI_CFG_ROM_BAR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PCI_CFG_ROM_BAR@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
	mov	w8, #4
Lloh14:
	adrp	x9, _base_addr@GOTPAGE
Lloh15:
	ldr	x9, [x9, _base_addr@GOTPAGEOFF]
Lloh16:
	adrp	x10, _PCI_ROM_ACTIVATE@GOTPAGE
Lloh17:
	ldr	x10, [x10, _PCI_ROM_ACTIVATE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	ldr	w10, [x10]
	orr	w9, w10, w9
	stp	w8, w9, [sp]
	ldr	w1, [x21]
	mov	x2, sp
	mov	x0, x19
	bl	_ioctl
	cmn	w0, #1
	csetm	w0, eq
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_CFG_CMD,4,2                ; @PCI_CFG_CMD
	.comm	_PCIOCREAD,4,2                  ; @PCIOCREAD
	.comm	_PCI_CMD_MEM_SPACE,4,2          ; @PCI_CMD_MEM_SPACE
	.comm	_PCIOCWRITE,4,2                 ; @PCIOCWRITE
	.comm	_PCI_CFG_ROM_BAR,4,2            ; @PCI_CFG_ROM_BAR
	.comm	_base_addr,4,2                  ; @base_addr
	.comm	_PCI_ROM_ACTIVATE,4,2           ; @PCI_ROM_ACTIVATE
	.no_dead_strip	_pci_enable_bars
.subsections_via_symbols
