	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isst_if_mmio_rd_wr
_isst_if_mmio_rd_wr:                    ## @isst_if_mmio_rd_wr
	.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
	movl	$-209, %eax
	addl	(%rdi), %eax
	cmpl	$-206, %eax
	jbe	LBB0_1
## %bb.3:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_6
## %bb.4:
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movl	16(%rbx), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_isst_if_get_pci_dev
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	%rax, %rdi
	callq	_pci_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_mutex_lock
	cmpq	$0, 8(%rbx)
	je	LBB0_10
## %bb.9:
	movl	4(%rbx), %edi
	movslq	(%rbx), %rsi
	addq	8(%r15), %rsi
	callq	_writel
	movl	$1, %eax
	jmp	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subq	(%rcx), %rax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_10:
	movslq	(%rbx), %rdi
	addq	8(%r15), %rdi
	callq	_readl
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
LBB0_11:
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_CAP_SYS_ADMIN,4,2              ## @CAP_SYS_ADMIN
	.comm	_EPERM,8,3                      ## @EPERM
	.no_dead_strip	_isst_if_mmio_rd_wr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isst_if_mmio_rd_wr
_isst_if_mmio_rd_wr:                    ; @isst_if_mmio_rd_wr
	.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	w8, [x0]
	sub	w8, w8, #209
	cmn	w8, #206
	b.ls	LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_10
LBB0_3:
	ldr	w0, [x20, #16]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #1
	bl	_isst_if_get_pci_dev
	cbz	x0, LBB0_7
; %bb.4:
	bl	_pci_get_drvdata
	cbz	x0, LBB0_7
; %bb.5:
	mov	x21, x0
	bl	_mutex_lock
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_11
; %bb.6:
	ldr	x8, [x21, #8]
	ldp	w9, w0, [x20]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x1, x8, x9
	bl	_writel
	mov	w8, #1
	b	LBB0_12
LBB0_7:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	x8, [x8]
	neg	x0, x8
LBB0_9:
	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
	ret
LBB0_10:
Lloh5:
	adrp	x8, _EPERM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_8
LBB0_11:
	ldr	x8, [x21, #8]
	ldrsw	x9, [x20]
	add	x0, x8, x9
	bl	_readl
	mov	w8, #0
	str	w0, [x20, #4]
LBB0_12:
	str	w8, [x19]
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_CAP_SYS_ADMIN,4,2              ; @CAP_SYS_ADMIN
	.comm	_EPERM,8,3                      ; @EPERM
	.no_dead_strip	_isst_if_mmio_rd_wr
.subsections_via_symbols
