	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_disable_pcie_master
_ixgbe_disable_pcie_master:             ## @ixgbe_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_IXGBE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IXGBE_CTRL_GIO_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_IXGBE_WRITE_REG
	movq	_IXGBE_STATUS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_IXGBE_READ_REG
	movq	_IXGBE_STATUS_GIO@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	je	LBB0_12
## %bb.1:
	movq	_IXGBE_PCI_MASTER_DISABLE_TIMEOUT@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	jle	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$100, %edi
	callq	_udelay
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_IXGBE_READ_REG
	testl	%eax, (%r14)
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	(%r13), %rbx
	jl	LBB0_3
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_hw_dbg
	movq	_IXGBE_FLAGS_DOUBLE_RESET_REQUIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	cmpq	$0, (%r13)
	jle	LBB0_9
## %bb.6:
	leaq	-44(%rbp), %r15
	movq	_IXGBE_PCI_DEVICE_STATUS_TRANSACTION_PENDING@GOTPCREL(%rip), %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	$100, %edi
	callq	_udelay
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_IXGBE_PCI_DEVICE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_pci_read_config_word
	movl	(%rbx), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	cmpq	(%r13), %r14
	jl	LBB0_7
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_hw_dbg
	movq	_IXGBE_ERR_MASTER_REQUESTS_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_CTRL,4,2                 ## @IXGBE_CTRL
	.comm	_IXGBE_CTRL_GIO_DIS,4,2         ## @IXGBE_CTRL_GIO_DIS
	.comm	_IXGBE_STATUS,4,2               ## @IXGBE_STATUS
	.comm	_IXGBE_STATUS_GIO,4,2           ## @IXGBE_STATUS_GIO
	.comm	_IXGBE_PCI_MASTER_DISABLE_TIMEOUT,8,3 ## @IXGBE_PCI_MASTER_DISABLE_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GIO Master Disable bit didn't clear - requesting resets\n"

	.comm	_IXGBE_FLAGS_DOUBLE_RESET_REQUIRED,4,2 ## @IXGBE_FLAGS_DOUBLE_RESET_REQUIRED
	.comm	_IXGBE_PCI_DEVICE_STATUS,4,2    ## @IXGBE_PCI_DEVICE_STATUS
	.comm	_IXGBE_PCI_DEVICE_STATUS_TRANSACTION_PENDING,4,2 ## @IXGBE_PCI_DEVICE_STATUS_TRANSACTION_PENDING
L_.str.1:                               ## @.str.1
	.asciz	"PCIe transaction pending bit also did not clear.\n"

	.comm	_IXGBE_ERR_MASTER_REQUESTS_PENDING,4,2 ## @IXGBE_ERR_MASTER_REQUESTS_PENDING
	.no_dead_strip	_ixgbe_disable_pcie_master
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_disable_pcie_master
_ixgbe_disable_pcie_master:             ; @ixgbe_disable_pcie_master
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _IXGBE_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IXGBE_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IXGBE_CTRL_GIO_DIS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IXGBE_CTRL_GIO_DIS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_IXGBE_WRITE_REG
Lloh6:
	adrp	x22, _IXGBE_STATUS@GOTPAGE
Lloh7:
	ldr	x22, [x22, _IXGBE_STATUS@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_IXGBE_READ_REG
Lloh8:
	adrp	x23, _IXGBE_STATUS_GIO@GOTPAGE
Lloh9:
	ldr	x23, [x23, _IXGBE_STATUS_GIO@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.1:
Lloh10:
	adrp	x21, _IXGBE_PCI_MASTER_DISABLE_TIMEOUT@GOTPAGE
Lloh11:
	ldr	x21, [x21, _IXGBE_PCI_MASTER_DISABLE_TIMEOUT@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x24, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x22]
	mov	x0, x19
	bl	_IXGBE_READ_REG
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldr	x8, [x21]
	cmp	x24, x8
	b.lt	LBB0_3
LBB0_5:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
Lloh14:
	adrp	x8, _IXGBE_FLAGS_DOUBLE_RESET_REQUIRED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IXGBE_FLAGS_DOUBLE_RESET_REQUIRED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x22, #0
Lloh17:
	adrp	x23, _IXGBE_PCI_DEVICE_STATUS@GOTPAGE
Lloh18:
	ldr	x23, [x23, _IXGBE_PCI_DEVICE_STATUS@GOTPAGEOFF]
Lloh19:
	adrp	x24, _IXGBE_PCI_DEVICE_STATUS_TRANSACTION_PENDING@GOTPAGE
Lloh20:
	ldr	x24, [x24, _IXGBE_PCI_DEVICE_STATUS_TRANSACTION_PENDING@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #100
	bl	_udelay
	ldr	w0, [x20]
	ldr	w1, [x23]
	add	x2, sp, #12
	bl	_pci_read_config_word
	ldr	w8, [sp, #12]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	ldr	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_7
LBB0_9:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
Lloh23:
	adrp	x8, _IXGBE_ERR_MASTER_REQUESTS_PENDING@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IXGBE_ERR_MASTER_REQUESTS_PENDING@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_CTRL,4,2                 ; @IXGBE_CTRL
	.comm	_IXGBE_CTRL_GIO_DIS,4,2         ; @IXGBE_CTRL_GIO_DIS
	.comm	_IXGBE_STATUS,4,2               ; @IXGBE_STATUS
	.comm	_IXGBE_STATUS_GIO,4,2           ; @IXGBE_STATUS_GIO
	.comm	_IXGBE_PCI_MASTER_DISABLE_TIMEOUT,8,3 ; @IXGBE_PCI_MASTER_DISABLE_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GIO Master Disable bit didn't clear - requesting resets\n"

	.comm	_IXGBE_FLAGS_DOUBLE_RESET_REQUIRED,4,2 ; @IXGBE_FLAGS_DOUBLE_RESET_REQUIRED
	.comm	_IXGBE_PCI_DEVICE_STATUS,4,2    ; @IXGBE_PCI_DEVICE_STATUS
	.comm	_IXGBE_PCI_DEVICE_STATUS_TRANSACTION_PENDING,4,2 ; @IXGBE_PCI_DEVICE_STATUS_TRANSACTION_PENDING
l_.str.1:                               ; @.str.1
	.asciz	"PCIe transaction pending bit also did not clear.\n"

	.comm	_IXGBE_ERR_MASTER_REQUESTS_PENDING,4,2 ; @IXGBE_ERR_MASTER_REQUESTS_PENDING
	.no_dead_strip	_ixgbe_disable_pcie_master
.subsections_via_symbols
