	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iommu_pc_get_set_reg
_iommu_pc_get_set_reg:                  ## @iommu_pc_get_set_reg
	.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
	movq	_amd_iommu_pc_present@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.3:
	movl	%r9d, %r15d
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	testq	%rdi, %rdi
	sete	%al
	cmpl	$41, %ecx
	setge	%cl
	orb	%al, %cl
	testb	$7, %r13b
	setne	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	shll	$12, %r14d
	shll	$8, %ebx
	orl	%r14d, %ebx
	orl	%r13d, %ebx
	orl	$262144, %ebx                   ## imm = 0x40000
	movslq	%ebx, %r13
	movq	_MMIO_CNTR_REG_OFFSET@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jg	LBB0_6
## %bb.5:
	movl	(%r12), %eax
	movl	4(%r12), %ecx
	shll	$12, %eax
	shll	$8, %ecx
	orl	%eax, %ecx
	orl	$262184, %ecx                   ## imm = 0x40028
	cmpl	%ecx, %ebx
	jle	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r14d
	xorl	%ebx, %ebx
	movl	$47, %edi
	xorl	%esi, %esi
	callq	_GENMASK_ULL
	andl	%eax, %r14d
	movq	8(%r12), %rsi
	addq	%r13, %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	8(%r12), %rax
	leaq	(%rax,%r13), %rsi
	addq	$4, %rsi
	callq	_writel
	jmp	LBB0_10
LBB0_9:
	movq	8(%r12), %rax
	leaq	(%rax,%r13), %rdi
	addq	$4, %rdi
	callq	_readl
	addq	8(%r12), %r13
	movq	%r13, %rdi
	callq	_readl
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	orl	%eax, (%r14)
	xorl	%ebx, %ebx
	movl	$47, %edi
	xorl	%esi, %esi
	callq	_GENMASK_ULL
	andl	%eax, (%r14)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_amd_iommu_pc_present,4,2       ## @amd_iommu_pc_present
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_MMIO_CNTR_REG_OFFSET,8,3       ## @MMIO_CNTR_REG_OFFSET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_iommu_pc_get_set_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iommu_pc_get_set_reg
_iommu_pc_get_set_reg:                  ; @iommu_pc_get_set_reg
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _amd_iommu_pc_present@GOTPAGE
Lloh1:
	ldr	x8, [x8, _amd_iommu_pc_present@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x21, x5
	mov	x19, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
	cmp	x0, #0
	mov	w8, #40
	ccmp	w3, w8, #0, ne
	cset	w8, gt
	tst	w3, #0x7
	cset	w9, ne
	orr	w0, w8, w9
	bl	_WARN_ON
	cbz	x0, LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	lsl	w8, w24, #12
	orr	w8, w8, w23, lsl #8
	orr	w8, w8, w22
	orr	w8, w8, #0x40000
	sxtw	x22, w8
Lloh5:
	adrp	x8, _MMIO_CNTR_REG_OFFSET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMIO_CNTR_REG_OFFSET@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x22
	b.gt	LBB0_7
; %bb.6:
	ldp	w8, w9, [x20]
	lsl	w8, w8, #12
	orr	w8, w8, w9, lsl #8
	mov	w9, #40
	movk	w9, #4, lsl #16
	orr	w8, w8, w9
	cmp	w22, w8
	b.le	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_3
LBB0_8:
	cbz	w21, LBB0_10
; %bb.9:
	ldr	w19, [x19]
	mov	w0, #47
	mov	w1, #0
	bl	_GENMASK_ULL
	and	w0, w0, w19
	ldr	x8, [x20, #8]
	add	x1, x8, x22
	bl	_writel
	ldr	x8, [x20, #8]
	add	x8, x22, x8
	add	x1, x8, #4
	bl	_writel
	mov	w0, #0
	b	LBB0_4
LBB0_10:
	ldr	x8, [x20, #8]
	add	x8, x22, x8
	add	x0, x8, #4
	bl	_readl
	ldr	x8, [x20, #8]
	add	x0, x8, x22
	bl	_readl
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
	mov	w0, #47
	mov	w1, #0
	bl	_GENMASK_ULL
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x19]
	and	w8, w9, w8
	str	w8, [x19]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_amd_iommu_pc_present,4,2       ; @amd_iommu_pc_present
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_MMIO_CNTR_REG_OFFSET,8,3       ; @MMIO_CNTR_REG_OFFSET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_iommu_pc_get_set_reg
.subsections_via_symbols
