	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i5100_do_inject
_i5100_do_inject:                       ## @i5100_do_inject
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movl	(%rbx), %eax
	andl	$3, %eax
	shll	$28, %eax
	movq	_I5100_MEMXEINJMSK0_EINJEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	4(%rbx), %ecx
	movzwl	%cx, %ecx
	shll	$10, %ecx
	movl	8(%rbx), %esi
	andl	$31, %esi
	shll	$5, %esi
	orl	%ecx, %esi
	movl	12(%rbx), %edx
	andl	$31, %edx
	orl	%esi, %edx
	orl	%eax, %edx
	movl	32(%rbx), %r14d
	cmpq	$0, 16(%rbx)
	movl	28(%rbx), %edi
	movq	_I5100_MEM1EINJMSK0@GOTPCREL(%rip), %rax
	cmoveq	_I5100_MEM0EINJMSK0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_I5100_MEM1EINJMSK1@GOTPCREL(%rip), %r15
	cmoveq	_I5100_MEM0EINJMSK1@GOTPCREL(%rip), %r15
	callq	_pci_write_config_dword
	movl	28(%rbx), %edi
	movl	(%r15), %esi
	movl	%r14d, %edx
	callq	_pci_write_config_word
	movl	24(%rbx), %edi
	movq	_I5100_DINJ0@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$170, %edx
	callq	_pci_write_config_byte
	movl	24(%rbx), %edi
	movl	(%r14), %esi
	movl	$171, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_write_config_byte          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I5100_MEMXEINJMSK0_EINJEN,4,2  ## @I5100_MEMXEINJMSK0_EINJEN
	.comm	_I5100_MEM0EINJMSK0,4,2         ## @I5100_MEM0EINJMSK0
	.comm	_I5100_MEM0EINJMSK1,4,2         ## @I5100_MEM0EINJMSK1
	.comm	_I5100_MEM1EINJMSK0,4,2         ## @I5100_MEM1EINJMSK0
	.comm	_I5100_MEM1EINJMSK1,4,2         ## @I5100_MEM1EINJMSK1
	.comm	_I5100_DINJ0,4,2                ## @I5100_DINJ0
	.no_dead_strip	_i5100_do_inject
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i5100_do_inject
_i5100_do_inject:                       ; @i5100_do_inject
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, [x0]
	ldp	w8, w9, [x20]
	ubfiz	w8, w8, #28, #2
Lloh0:
	adrp	x10, _I5100_MEMXEINJMSK0_EINJEN@GOTPAGE
Lloh1:
	ldr	x10, [x10, _I5100_MEMXEINJMSK0_EINJEN@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	orr	w8, w8, w10
	ubfiz	w9, w9, #10, #16
	orr	w8, w8, w9
	ldp	w9, w10, [x20, #8]
	ubfiz	w9, w9, #5, #5
	orr	w8, w8, w9
	and	w9, w10, #0x1f
	orr	w2, w8, w9
	ldr	x8, [x20, #16]
Lloh3:
	adrp	x9, _I5100_MEM0EINJMSK0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I5100_MEM0EINJMSK0@GOTPAGEOFF]
	ldp	w0, w19, [x20, #28]
Lloh5:
	adrp	x10, _I5100_MEM1EINJMSK0@GOTPAGE
Lloh6:
	ldr	x10, [x10, _I5100_MEM1EINJMSK0@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _I5100_MEM0EINJMSK1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I5100_MEM0EINJMSK1@GOTPAGEOFF]
Lloh9:
	adrp	x9, _I5100_MEM1EINJMSK1@GOTPAGE
Lloh10:
	ldr	x9, [x9, _I5100_MEM1EINJMSK1@GOTPAGEOFF]
	csel	x21, x8, x9, eq
	bl	_pci_write_config_dword
	ldr	w0, [x20, #28]
	ldr	w1, [x21]
	mov	x2, x19
	bl	_pci_write_config_word
	ldr	w0, [x20, #24]
Lloh11:
	adrp	x19, _I5100_DINJ0@GOTPAGE
Lloh12:
	ldr	x19, [x19, _I5100_DINJ0@GOTPAGEOFF]
	ldr	w1, [x19]
	mov	w2, #170
	bl	_pci_write_config_byte
	ldr	w0, [x20, #24]
	ldr	w1, [x19]
	mov	w2, #171
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pci_write_config_byte
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I5100_MEMXEINJMSK0_EINJEN,4,2  ; @I5100_MEMXEINJMSK0_EINJEN
	.comm	_I5100_MEM0EINJMSK0,4,2         ; @I5100_MEM0EINJMSK0
	.comm	_I5100_MEM0EINJMSK1,4,2         ; @I5100_MEM0EINJMSK1
	.comm	_I5100_MEM1EINJMSK0,4,2         ; @I5100_MEM1EINJMSK0
	.comm	_I5100_MEM1EINJMSK1,4,2         ; @I5100_MEM1EINJMSK1
	.comm	_I5100_DINJ0,4,2                ; @I5100_DINJ0
	.no_dead_strip	_i5100_do_inject
.subsections_via_symbols
