	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_IXGBE_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_IXGBE_CTRL_GIO_DIS@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_IXGBE_WRITE_REG
	movq	_IXGBE_PCI_MASTER_DISABLE_TIMEOUT@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jle	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_IXGBE_READ_REG
	testl	%eax, (%r15)
	jne	LBB0_10
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$100, %edi
	movl	$120, %esi
	callq	_usleep_range
	incq	%rbx
	movq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_1
LBB0_3:
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_4:
	movq	_IXGBE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_IXGBE_READ_REG
	movq	_IXGBE_STATUS_GIO@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	testl	%eax, (%r14)
	je	LBB0_22
## %bb.5:
	movl	(%r12), %edi
	callq	_ixgbe_removed
	testq	%rax, %rax
	jne	LBB0_22
## %bb.6:
	leaq	L_.str.1(%rip), %r15
	cmpq	$0, (%r13)
	jle	LBB0_12
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	$100, %edi
	callq	_udelay
	movq	_IXGBE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_IXGBE_READ_REG
	testl	%eax, (%r14)
	je	LBB0_21
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	cmpq	(%r13), %rbx
	jl	LBB0_8
	jmp	LBB0_12
LBB0_10:
	movq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_11:
	leaq	L_.str(%rip), %r15
LBB0_12:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_hw_dbg
	movq	_IXGBE_FLAGS_DOUBLE_RESET_REQUIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r12)
	movq	8(%r12), %rax
	movq	_ixgbe_mac_X550@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jge	LBB0_22
## %bb.13:
	movq	%r12, %rdi
	callq	_ixgbe_pcie_timeout_poll
	testq	%rax, %rax
	jle	LBB0_18
## %bb.14:
	movq	%rax, %r15
	movq	_IXGBE_PCI_DEVICE_STATUS@GOTPCREL(%rip), %r13
	movq	_IXGBE_PCI_DEVICE_STATUS_TRANSACTION_PENDING@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	$100, %edi
	callq	_udelay
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_ixgbe_read_pci_cfg_word
	movl	%eax, %ebx
	movl	(%r12), %edi
	callq	_ixgbe_removed
	testq	%rax, %rax
	jne	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	testl	%ebx, (%r14)
	je	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	decq	%r15
	jne	LBB0_15
LBB0_18:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_hw_dbg
	movq	_IXGBE_ERR_MASTER_REQUESTS_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_22
LBB0_21:
	xorl	%ebx, %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %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_PCI_MASTER_DISABLE_TIMEOUT,8,3 ## @IXGBE_PCI_MASTER_DISABLE_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GIO disable did not set - requesting resets\n"

	.comm	_IXGBE_STATUS,4,2               ## @IXGBE_STATUS
	.comm	_IXGBE_STATUS_GIO,4,2           ## @IXGBE_STATUS_GIO
L_.str.1:                               ## @.str.1
	.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_mac_X550,8,3             ## @ixgbe_mac_X550
	.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.2:                               ## @.str.2
	.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:
	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
	mov	x19, x0
Lloh0:
	adrp	x20, _IXGBE_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _IXGBE_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x22, _IXGBE_CTRL_GIO_DIS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _IXGBE_CTRL_GIO_DIS@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_IXGBE_WRITE_REG
Lloh4:
	adrp	x21, _IXGBE_PCI_MASTER_DISABLE_TIMEOUT@GOTPAGE
Lloh5:
	ldr	x21, [x21, _IXGBE_PCI_MASTER_DISABLE_TIMEOUT@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_IXGBE_READ_REG
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_22
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #100
	mov	w1, #120
	bl	_usleep_range
	add	x23, x23, #1
	ldr	x8, [x21]
	cmp	x23, x8
	b.lt	LBB0_2
; %bb.4:
	cmp	x23, x8
	b.ge	LBB0_12
LBB0_5:
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_20
; %bb.6:
	ldr	w0, [x19]
	bl	_ixgbe_removed
	cbnz	x0, LBB0_20
; %bb.7:
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_23
; %bb.8:
	mov	x24, #0
Lloh10:
	adrp	x20, l_.str.1@PAGE
Lloh11:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_9:                                 ; =>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_20
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x24, x24, #1
	ldr	x8, [x21]
	cmp	x24, x8
	b.lt	LBB0_9
	b	LBB0_13
LBB0_11:
	mov	x23, #0
	cmp	x23, x8
	b.lt	LBB0_5
LBB0_12:
Lloh12:
	adrp	x20, l_.str@PAGE
Lloh13:
	add	x20, x20, l_.str@PAGEOFF
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	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, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
	ldr	x8, [x19, #8]
Lloh17:
	adrp	x9, _ixgbe_mac_X550@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ixgbe_mac_X550@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_20
; %bb.14:
	mov	x0, x19
	bl	_ixgbe_pcie_timeout_poll
	cmp	x0, #1
	b.lt	LBB0_19
; %bb.15:
	mov	x20, x0
Lloh20:
	adrp	x22, _IXGBE_PCI_DEVICE_STATUS@GOTPAGE
Lloh21:
	ldr	x22, [x22, _IXGBE_PCI_DEVICE_STATUS@GOTPAGEOFF]
Lloh22:
	adrp	x23, _IXGBE_PCI_DEVICE_STATUS_TRANSACTION_PENDING@GOTPAGE
Lloh23:
	ldr	x23, [x23, _IXGBE_PCI_DEVICE_STATUS_TRANSACTION_PENDING@GOTPAGEOFF]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ixgbe_read_pci_cfg_word
	mov	x21, x0
	ldr	w0, [x19]
	bl	_ixgbe_removed
	cbnz	x0, LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x23]
	tst	w8, w21
	b.eq	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	subs	x20, x20, #1
	b.ne	LBB0_16
LBB0_19:
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
Lloh26:
	adrp	x8, _IXGBE_ERR_MASTER_REQUESTS_PENDING@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IXGBE_ERR_MASTER_REQUESTS_PENDING@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	b	LBB0_21
LBB0_20:
	mov	w0, #0
LBB0_21:
	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_22:
	ldr	x8, [x21]
	cmp	x23, x8
	b.lt	LBB0_5
	b	LBB0_12
LBB0_23:
Lloh29:
	adrp	x20, l_.str.1@PAGE
Lloh30:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_13
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_CTRL,4,2                 ; @IXGBE_CTRL
	.comm	_IXGBE_CTRL_GIO_DIS,4,2         ; @IXGBE_CTRL_GIO_DIS
	.comm	_IXGBE_PCI_MASTER_DISABLE_TIMEOUT,8,3 ; @IXGBE_PCI_MASTER_DISABLE_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GIO disable did not set - requesting resets\n"

	.comm	_IXGBE_STATUS,4,2               ; @IXGBE_STATUS
	.comm	_IXGBE_STATUS_GIO,4,2           ; @IXGBE_STATUS_GIO
l_.str.1:                               ; @.str.1
	.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_mac_X550,8,3             ; @ixgbe_mac_X550
	.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.2:                               ; @.str.2
	.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
