	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_trans_pcie_grab_nic_access
_iwl_trans_pcie_grab_nic_access:        ## @iwl_trans_pcie_grab_nic_access
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movq	%rax, %r15
	movq	(%r14), %rsi
	movq	%rax, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 8(%r15)
	je	LBB0_1
LBB0_14:
	movq	%r15, %rdi
	callq	___release
	movl	$1, %eax
	jmp	LBB0_15
LBB0_1:
	movq	_CSR_GP_CNTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	movl	8(%rax), %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	___iwl_trans_pcie_set_bit
	movq	8(%rbx), %rax
	movq	(%rax), %rcx
	movq	_IWL_DEVICE_FAMILY_8000@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jl	LBB0_3
## %bb.2:
	movl	$2, %edi
	callq	_udelay
	movq	8(%rbx), %rax
LBB0_3:
	movl	(%r13), %r12d
	movq	8(%rax), %rax
	movl	4(%rax), %edi
	callq	_BIT
	movl	%eax, %r13d
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	_CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	movl	$15000, %r8d                    ## imm = 0x3A98
	callq	_iwl_poll_bit
	shrl	$31, %eax
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	movq	_CSR_GP_CNTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_iwl_read32
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_WARN_ONCE
	movq	%rbx, %rdi
	callq	_iwl_trans_pcie_dump_regs
	cmpl	$-1, %r12d
	jne	LBB0_12
## %bb.5:
	movq	_iwlwifi_mod_params@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.6:
	movq	_STATUS_TRANS_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %r12
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_13
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_ERR
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r13
	movq	_STATUS_TRANS_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_set_bit
	movl	(%rbx), %edi
	callq	_to_pci_dev
	movl	%eax, 4(%r13)
	movq	_iwl_trans_pcie_removal_wk@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_INIT_WORK
	movl	4(%r13), %edi
	callq	_pci_dev_get
	movq	%r13, %rdi
	callq	_schedule_work
	jmp	LBB0_13
LBB0_12:
	movq	_CSR_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CSR_RESET_REG_FLAG_FORCE_NMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_iwl_write32
LBB0_13:
	movq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_ERR
	jmp	LBB0_13
LBB0_10:
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_module_put
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR_GP_CNTRL,4,2               ## @CSR_GP_CNTRL
	.comm	_IWL_DEVICE_FAMILY_8000,8,3     ## @IWL_DEVICE_FAMILY_8000
	.comm	_CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP,4,2 ## @CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout waiting for hardware access (CSR_GP_CNTRL 0x%08x)\n"

	.comm	_iwlwifi_mod_params,8,3         ## @iwlwifi_mod_params
	.comm	_STATUS_TRANS_DEAD,4,2          ## @STATUS_TRANS_DEAD
L_.str.1:                               ## @.str.1
	.asciz	"Device gone - scheduling removal!\n"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
L_.str.2:                               ## @.str.2
	.asciz	"Module is being unloaded - abort\n"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_iwl_trans_pcie_removal_wk,4,2  ## @iwl_trans_pcie_removal_wk
	.comm	_CSR_RESET,4,2                  ## @CSR_RESET
	.comm	_CSR_RESET_REG_FLAG_FORCE_NMI,4,2 ## @CSR_RESET_REG_FLAG_FORCE_NMI
	.no_dead_strip	_iwl_trans_pcie_grab_nic_access
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_trans_pcie_grab_nic_access
_iwl_trans_pcie_grab_nic_access:        ; @iwl_trans_pcie_grab_nic_access
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x21, x0
	bl	_IWL_TRANS_GET_PCIE_TRANS
	mov	x20, x0
	ldr	x1, [x19]
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
LBB0_1:
	mov	x0, x20
	bl	___release
	mov	w0, #1
	b	LBB0_13
LBB0_2:
Lloh0:
	adrp	x24, _CSR_GP_CNTRL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CSR_GP_CNTRL@GOTPAGEOFF]
	ldr	w22, [x24]
	ldr	x8, [x21, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x8, #8]
	bl	_BIT
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	___iwl_trans_pcie_set_bit
	ldr	x8, [x21, #8]
	ldr	x9, [x8]
Lloh2:
	adrp	x10, _IWL_DEVICE_FAMILY_8000@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IWL_DEVICE_FAMILY_8000@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.lt	LBB0_4
; %bb.3:
	mov	w0, #2
	bl	_udelay
	ldr	x8, [x21, #8]
LBB0_4:
	ldr	w22, [x24]
	ldr	x8, [x8, #8]
	ldr	w0, [x8, #4]
	bl	_BIT
	mov	x23, x0
	ldr	x8, [x21, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	bl	_BIT
Lloh5:
	adrp	x8, _CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w3, w8, w0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	w4, #15000
	bl	_iwl_poll_bit
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_1
; %bb.5:
	ldr	w1, [x24]
	mov	x0, x21
	bl	_iwl_read32
	mov	x22, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x22
	bl	_WARN_ONCE
	mov	x0, x21
	bl	_iwl_trans_pcie_dump_regs
	cmn	w22, #1
	b.ne	LBB0_11
; %bb.6:
Lloh10:
	adrp	x8, _iwlwifi_mod_params@GOTPAGE
Lloh11:
	ldr	x8, [x8, _iwlwifi_mod_params@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.7:
Lloh13:
	adrp	x24, _STATUS_TRANS_DEAD@GOTPAGE
Lloh14:
	ldr	x24, [x24, _STATUS_TRANS_DEAD@GOTPAGEOFF]
	ldr	w0, [x24]
	add	x22, x21, #4
	mov	x1, x22
	bl	_test_bit
	cbnz	x0, LBB0_12
; %bb.8:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_IWL_ERR
Lloh17:
	adrp	x25, _THIS_MODULE@GOTPAGE
Lloh18:
	ldr	x25, [x25, _THIS_MODULE@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_try_module_get
	cbz	w0, LBB0_14
; %bb.9:
Lloh19:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_15
; %bb.10:
	mov	x23, x0
	ldr	w0, [x24]
	mov	x1, x22
	bl	_set_bit
	ldr	w0, [x21]
	bl	_to_pci_dev
	str	w0, [x23, #4]
Lloh22:
	adrp	x8, _iwl_trans_pcie_removal_wk@GOTPAGE
Lloh23:
	ldr	x8, [x8, _iwl_trans_pcie_removal_wk@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_INIT_WORK
	ldr	w0, [x23, #4]
	bl	_pci_dev_get
	mov	x0, x23
	bl	_schedule_work
	b	LBB0_12
LBB0_11:
Lloh25:
	adrp	x8, _CSR_RESET@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CSR_RESET@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _CSR_RESET_REG_FLAG_FORCE_NMI@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CSR_RESET_REG_FLAG_FORCE_NMI@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_iwl_write32
LBB0_12:
	ldr	x1, [x19]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #0
LBB0_13:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_IWL_ERR
	b	LBB0_12
LBB0_15:
	ldr	w0, [x25]
	bl	_module_put
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR_GP_CNTRL,4,2               ; @CSR_GP_CNTRL
	.comm	_IWL_DEVICE_FAMILY_8000,8,3     ; @IWL_DEVICE_FAMILY_8000
	.comm	_CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP,4,2 ; @CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout waiting for hardware access (CSR_GP_CNTRL 0x%08x)\n"

	.comm	_iwlwifi_mod_params,8,3         ; @iwlwifi_mod_params
	.comm	_STATUS_TRANS_DEAD,4,2          ; @STATUS_TRANS_DEAD
l_.str.1:                               ; @.str.1
	.asciz	"Device gone - scheduling removal!\n"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
l_.str.2:                               ; @.str.2
	.asciz	"Module is being unloaded - abort\n"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_iwl_trans_pcie_removal_wk,4,2  ; @iwl_trans_pcie_removal_wk
	.comm	_CSR_RESET,4,2                  ; @CSR_RESET
	.comm	_CSR_RESET_REG_FLAG_FORCE_NMI,4,2 ; @CSR_RESET_REG_FLAG_FORCE_NMI
	.no_dead_strip	_iwl_trans_pcie_grab_nic_access
.subsections_via_symbols
