	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function quirk_plx_pci9050
_quirk_plx_pci9050:                     ## @quirk_plx_pci9050
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$1, (%rdi)
	jg	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	xorl	%esi, %esi
	callq	_pci_resource_len
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_start
	testb	$-128, %al
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %r14
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_pci_info
	movq	_IORESOURCE_UNSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r14)
	movq	$0, 8(%r14)
	movl	$255, (%r14)
LBB0_4:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_pci_resource_len
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_pci_resource_start
	testb	$-128, %al
	je	LBB0_7
## %bb.6:
	movq	8(%rbx), %r14
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_pci_info
	movq	_IORESOURCE_UNSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 40(%r14)
	movq	$0, 32(%r14)
	movl	$255, 24(%r14)
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Re-allocating PLX PCI 9050 BAR %u to length 256 to avoid bit 7 bug\n"

	.comm	_IORESOURCE_UNSET,4,2           ## @IORESOURCE_UNSET
	.no_dead_strip	_quirk_plx_pci9050
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function quirk_plx_pci9050
_quirk_plx_pci9050:                     ; @quirk_plx_pci9050
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	cmp	w8, #1
	b.gt	LBB0_7
; %bb.1:
	mov	x19, x0
	mov	w1, #0
	bl	_pci_resource_len
	cmp	w0, #128
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_pci_resource_start
	tbz	w0, #7, LBB0_4
; %bb.3:
	ldr	x20, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_pci_info
Lloh2:
	adrp	x8, _IORESOURCE_UNSET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IORESOURCE_UNSET@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	orr	w8, w9, w8
	str	w8, [x20, #16]
	str	xzr, [x20, #8]
	mov	w8, #255
	str	w8, [x20]
LBB0_4:
	mov	x0, x19
	mov	w1, #1
	bl	_pci_resource_len
	cmp	w0, #128
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x19
	mov	w1, #1
	bl	_pci_resource_start
	tbz	w0, #7, LBB0_7
; %bb.6:
	ldr	x20, [x19, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_pci_info
Lloh7:
	adrp	x8, _IORESOURCE_UNSET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IORESOURCE_UNSET@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x20, #40]
	orr	w8, w9, w8
	str	w8, [x20, #40]
	str	xzr, [x20, #32]
	mov	w8, #255
	str	w8, [x20, #24]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Re-allocating PLX PCI 9050 BAR %u to length 256 to avoid bit 7 bug\n"

	.comm	_IORESOURCE_UNSET,4,2           ; @IORESOURCE_UNSET
	.no_dead_strip	_quirk_plx_pci9050
.subsections_via_symbols
