	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function faraday_raw_pci_write_config
_faraday_raw_pci_write_config:          ## @faraday_raw_pci_write_config
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r13d
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_PCIBIOS_SUCCESSFUL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %edi
	callq	_PCI_CONF_BUS
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_PCI_SLOT
	movl	%eax, %edi
	callq	_PCI_CONF_DEVICE
	orl	%eax, %r14d
	movl	%r15d, %edi
	callq	_PCI_FUNC
	movl	%eax, %edi
	callq	_PCI_CONF_FUNCTION
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_PCI_CONF_WHERE
	orl	%eax, %ebx
	orl	%r14d, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	_PCI_CONF_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_PCI_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	cmpl	$1, %r13d
	je	LBB0_5
## %bb.1:
	cmpl	$2, %r13d
	je	LBB0_4
## %bb.2:
	cmpl	$4, %r13d
	jne	LBB0_6
## %bb.3:
	movq	_PCI_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_writel
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_7
LBB0_5:
	movq	_PCI_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	(%r14), %eax
	andl	$3, %r12d
	addl	%eax, %r12d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	callq	_writeb
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_7
LBB0_4:
	movq	_PCI_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	(%r14), %eax
	andl	$3, %r12d
	addl	%eax, %r12d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	callq	_writew
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_7
LBB0_6:
	movq	_PCIBIOS_BAD_REGISTER_NUMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIBIOS_SUCCESSFUL,4,2         ## @PCIBIOS_SUCCESSFUL
	.comm	_PCI_CONF_ENABLE,4,2            ## @PCI_CONF_ENABLE
	.comm	_PCI_CONFIG,8,3                 ## @PCI_CONFIG
	.comm	_PCI_DATA,8,3                   ## @PCI_DATA
	.comm	_PCIBIOS_BAD_REGISTER_NUMBER,4,2 ## @PCIBIOS_BAD_REGISTER_NUMBER
	.no_dead_strip	_faraday_raw_pci_write_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function faraday_raw_pci_write_config
_faraday_raw_pci_write_config:          ; @faraday_raw_pci_write_config
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x5
	mov	x23, x4
	mov	x21, x3
	mov	x24, x2
	mov	x22, x0
Lloh0:
	adrp	x8, _PCIBIOS_SUCCESSFUL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIBIOS_SUCCESSFUL@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	mov	x0, x1
	bl	_PCI_CONF_BUS
	mov	x25, x0
	mov	x0, x24
	bl	_PCI_SLOT
	bl	_PCI_CONF_DEVICE
	orr	w25, w0, w25
	mov	x0, x24
	bl	_PCI_FUNC
	bl	_PCI_CONF_FUNCTION
	orr	w24, w25, w0
	mov	x0, x21
	bl	_PCI_CONF_WHERE
	orr	w8, w24, w0
Lloh3:
	adrp	x9, _PCI_CONF_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCI_CONF_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x22]
Lloh6:
	adrp	x9, _PCI_CONFIG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PCI_CONFIG@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	cmp	w23, #1
	b.eq	LBB0_4
; %bb.1:
	cmp	w23, #2
	b.eq	LBB0_5
; %bb.2:
	cmp	w23, #4
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x22]
Lloh9:
	adrp	x9, _PCI_DATA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PCI_DATA@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	b	LBB0_7
LBB0_4:
	ldr	w8, [x22]
Lloh12:
	adrp	x9, _PCI_DATA@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PCI_DATA@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w10, w21, #0x3
	add	w8, w9, w8
	add	w1, w10, w8
	mov	x0, x20
	bl	_writeb
	b	LBB0_7
LBB0_5:
	ldr	w8, [x22]
Lloh15:
	adrp	x9, _PCI_DATA@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PCI_DATA@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w10, w21, #0x3
	add	w8, w9, w8
	add	w1, w10, w8
	mov	x0, x20
	bl	_writew
	b	LBB0_7
LBB0_6:
Lloh18:
	adrp	x8, _PCIBIOS_BAD_REGISTER_NUMBER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PCIBIOS_BAD_REGISTER_NUMBER@GOTPAGEOFF]
Lloh20:
	ldr	w19, [x8]
LBB0_7:
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIBIOS_SUCCESSFUL,4,2         ; @PCIBIOS_SUCCESSFUL
	.comm	_PCI_CONF_ENABLE,4,2            ; @PCI_CONF_ENABLE
	.comm	_PCI_CONFIG,8,3                 ; @PCI_CONFIG
	.comm	_PCI_DATA,8,3                   ; @PCI_DATA
	.comm	_PCIBIOS_BAD_REGISTER_NUMBER,4,2 ; @PCIBIOS_BAD_REGISTER_NUMBER
	.no_dead_strip	_faraday_raw_pci_write_config
.subsections_via_symbols
