	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlp_pcib_write_config
_xlp_pcib_write_config:                 ## @xlp_pcib_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movl	%r8d, %r13d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	16(%rbp), %r14d
	xorl	%edi, %edi
	callq	_XLP_HDR_OFFSET
	movl	%eax, %edi
	callq	_nlm_pcicfg_base
	testb	$1, %r13b
	je	LBB0_2
## %bb.1:
	cmpl	$2, %r14d
	je	LBB0_16
LBB0_2:
	testb	$3, %r13b
	je	LBB0_4
## %bb.3:
	cmpl	$4, %r14d
	jne	LBB0_4
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, %ebx
	sarl	$2, %ebx
	cmpl	$1, %r14d
	jne	LBB0_6
## %bb.5:
	movl	%eax, %r14d
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_nlm_read_pci_reg
	shll	$3, %r13d
	movl	$255, %edx
	jmp	LBB0_9
LBB0_6:
	cmpl	$2, %r14d
	jne	LBB0_7
## %bb.8:
	movl	%eax, %r14d
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_nlm_read_pci_reg
	shll	$3, %r13d
	movl	$65535, %edx                    ## imm = 0xFFFF
LBB0_9:
	movl	%r13d, %ecx
	shll	%cl, %edx
	notl	%edx
	andl	%eax, %edx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	shll	%cl, %eax
	orl	%edx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%r12d, %r12d
	jne	LBB0_11
LBB0_12:
	cmpl	$15, %ebx
	movl	%r14d, %edi
	jne	LBB0_15
## %bb.13:
	leal	7(%r15), %eax
	testl	%r15d, %r15d
	cmovnsl	%r15d, %eax
	andl	$-8, %eax
	subl	%eax, %r15d
	movl	$15, %ebx
	cmpl	$2, %r15d
	jl	LBB0_15
## %bb.14:
	movq	_XLP_PCI_DEVSCRATCH_REG0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_15
LBB0_7:
	movl	%eax, %r14d
	testl	%r12d, %r12d
	je	LBB0_12
LBB0_11:
	movl	%r14d, %edi
LBB0_15:
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nlm_write_pci_reg              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XLP_PCI_DEVSCRATCH_REG0,4,2    ## @XLP_PCI_DEVSCRATCH_REG0
	.no_dead_strip	_xlp_pcib_write_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlp_pcib_write_config
_xlp_pcib_write_config:                 ; @xlp_pcib_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	x25, x6
	mov	x19, x5
	mov	x24, x4
	mov	x20, x2
	mov	x22, x1
	mov	w0, #0
	bl	_XLP_HDR_OFFSET
	bl	_nlm_pcicfg_base
	mov	x21, x0
	tbz	w24, #0, LBB0_2
; %bb.1:
	cmp	w25, #2
	b.eq	LBB0_4
LBB0_2:
	tst	w24, #0x3
	b.eq	LBB0_5
; %bb.3:
	cmp	w25, #4
	b.ne	LBB0_5
LBB0_4:
	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
LBB0_5:
	asr	w23, w24, #2
	cmp	w25, #1
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x21
	mov	x1, x23
	bl	_nlm_read_pci_reg
	ubfiz	w8, w24, #3, #2
	mov	w9, #255
	b	LBB0_9
LBB0_7:
	cmp	w25, #2
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x21
	mov	x1, x23
	bl	_nlm_read_pci_reg
	ubfiz	w8, w24, #3, #2
	mov	w9, #65535
LBB0_9:
	lsl	w9, w9, w8
	bic	w9, w0, w9
	lsl	w8, w19, w8
	orr	w19, w9, w8
LBB0_10:
	cbnz	w22, LBB0_13
; %bb.11:
	cmp	w23, #15
	b.ne	LBB0_13
; %bb.12:
	negs	w8, w20
	and	w8, w8, #0x7
	and	w9, w20, #0x7
	csneg	w8, w9, w8, mi
Lloh0:
	adrp	x9, _XLP_PCI_DEVSCRATCH_REG0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XLP_PCI_DEVSCRATCH_REG0@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	w10, #15
	cmp	w8, #1
	csel	w23, w9, w10, gt
LBB0_13:
	mov	x0, x21
	mov	x1, x23
	mov	x2, 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
	b	_nlm_write_pci_reg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XLP_PCI_DEVSCRATCH_REG0,4,2    ; @XLP_PCI_DEVSCRATCH_REG0
	.no_dead_strip	_xlp_pcib_write_config
.subsections_via_symbols
