	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_disable_pcie_master     ## -- Begin function e1000e_disable_pcie_master
	.p2align	4, 0x90
_e1000e_disable_pcie_master:            ## @e1000e_disable_pcie_master
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MASTER_DISABLE_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_er32
	movq	_E1000_CTRL_GIO_MASTER_DISABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_ew32
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	_STATUS@GOTPCREL(%rip), %r15
	movq	_E1000_STATUS_GIO_MASTER_ENABLE@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_er32
	testl	%eax, (%r12)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$100, %edi
	movl	$200, %esi
	callq	_usleep_range
	decq	%rbx
	jne	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	movq	_E1000_ERR_MASTER_REQUESTS_PENDING@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
LBB0_5:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MASTER_DISABLE_TIMEOUT,8,3     ## @MASTER_DISABLE_TIMEOUT
	.comm	_CTRL,4,2                       ## @CTRL
	.comm	_E1000_CTRL_GIO_MASTER_DISABLE,4,2 ## @E1000_CTRL_GIO_MASTER_DISABLE
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_E1000_STATUS_GIO_MASTER_ENABLE,4,2 ## @E1000_STATUS_GIO_MASTER_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Master requests are pending.\n"

	.comm	_E1000_ERR_MASTER_REQUESTS_PENDING,8,3 ## @E1000_ERR_MASTER_REQUESTS_PENDING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_disable_pcie_master     ; -- Begin function e1000e_disable_pcie_master
	.p2align	2
_e1000e_disable_pcie_master:            ; @e1000e_disable_pcie_master
	.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
Lloh0:
	adrp	x8, _MASTER_DISABLE_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MASTER_DISABLE_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x20, _CTRL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _CTRL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_er32
Lloh5:
	adrp	x8, _E1000_CTRL_GIO_MASTER_DISABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _E1000_CTRL_GIO_MASTER_DISABLE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x20]
	bl	_ew32
	cbz	x19, LBB0_4
; %bb.1:
Lloh8:
	adrp	x20, _STATUS@GOTPAGE
Lloh9:
	ldr	x20, [x20, _STATUS@GOTPAGEOFF]
Lloh10:
	adrp	x21, _E1000_STATUS_GIO_MASTER_ENABLE@GOTPAGE
Lloh11:
	ldr	x21, [x21, _E1000_STATUS_GIO_MASTER_ENABLE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_er32
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #100
	mov	w1, #200
	bl	_usleep_range
	subs	x19, x19, #1
	b.ne	LBB0_2
LBB0_4:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
Lloh14:
	adrp	x8, _E1000_ERR_MASTER_REQUESTS_PENDING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E1000_ERR_MASTER_REQUESTS_PENDING@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_6
LBB0_5:
	mov	x0, #0
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MASTER_DISABLE_TIMEOUT,8,3     ; @MASTER_DISABLE_TIMEOUT
	.comm	_CTRL,4,2                       ; @CTRL
	.comm	_E1000_CTRL_GIO_MASTER_DISABLE,4,2 ; @E1000_CTRL_GIO_MASTER_DISABLE
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_E1000_STATUS_GIO_MASTER_ENABLE,4,2 ; @E1000_STATUS_GIO_MASTER_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Master requests are pending.\n"

	.comm	_E1000_ERR_MASTER_REQUESTS_PENDING,8,3 ; @E1000_ERR_MASTER_REQUESTS_PENDING
.subsections_via_symbols
