	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_trans_pcie_gen2_start_fw   ## -- Begin function iwl_trans_pcie_gen2_start_fw
	.p2align	4, 0x90
_iwl_trans_pcie_gen2_start_fw:          ## @iwl_trans_pcie_gen2_start_fw
	.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
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_iwl_pcie_prepare_card_hw
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movq	%r13, %rdi
	callq	_IWL_WARN
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_3:
	movq	%r13, %rdi
	callq	_iwl_enable_rfkill_int
	movq	_CSR_INT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	movl	$-1, %edx
	callq	_iwl_write32
	movq	%r13, %rdi
	callq	_iwl_disable_interrupts
	movq	%r13, %rdi
	callq	_iwl_pcie_synchronize_irqs
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	callq	_iwl_pcie_check_hw_rf_kill
	testl	%r15d, %r15d
	jne	LBB0_5
## %bb.4:
	testl	%eax, %eax
	je	LBB0_5
LBB0_15:
	movq	_ERFKILL@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	cmpq	$0, 8(%r14)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_7:
	movq	_CSR_UCODE_DRV_GP1_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CSR_UCODE_SW_BIT_RFKILL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_iwl_write32
	movq	_CSR_UCODE_DRV_GP1_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_iwl_write32
	movl	(%rbx), %esi
	movq	%r13, %rdi
	movl	$-1, %edx
	callq	_iwl_write32
	movq	%r13, %rdi
	callq	_iwl_pcie_gen2_nic_init
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_IWL_ERR
	jmp	LBB0_17
LBB0_9:
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	_IWL_DEVICE_FAMILY_22560@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_10
## %bb.11:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_iwl_pcie_ctxt_info_init
	jmp	LBB0_12
LBB0_10:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_iwl_pcie_ctxt_info_gen3_init
LBB0_12:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.13:
	movq	%r13, %rdi
	callq	_iwl_pcie_check_hw_rf_kill
	xorl	%ebx, %ebx
	testl	%r15d, %r15d
	jne	LBB0_17
## %bb.14:
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Exit HW not ready\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_CSR_INT,4,2                    ## @CSR_INT
	.comm	_ERFKILL,4,2                    ## @ERFKILL
L_.str.1:                               ## @.str.1
	.asciz	"Can't start_fw since the HW hasn't been started\n"

	.comm	_CSR_UCODE_DRV_GP1_CLR,4,2      ## @CSR_UCODE_DRV_GP1_CLR
	.comm	_CSR_UCODE_SW_BIT_RFKILL,4,2    ## @CSR_UCODE_SW_BIT_RFKILL
	.comm	_CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED,4,2 ## @CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED
L_.str.2:                               ## @.str.2
	.asciz	"Unable to init nic\n"

	.comm	_IWL_DEVICE_FAMILY_22560,8,3    ## @IWL_DEVICE_FAMILY_22560
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_trans_pcie_gen2_start_fw   ; -- Begin function iwl_trans_pcie_gen2_start_fw
	.p2align	2
_iwl_trans_pcie_gen2_start_fw:          ; @iwl_trans_pcie_gen2_start_fw
	.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	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_IWL_TRANS_GET_PCIE_TRANS
	mov	x19, x0
	mov	x0, x20
	bl	_iwl_pcie_prepare_card_hw
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x20
	bl	_IWL_WARN
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_iwl_enable_rfkill_int
Lloh4:
	adrp	x23, _CSR_INT@GOTPAGE
Lloh5:
	ldr	x23, [x23, _CSR_INT@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #-1
	bl	_iwl_write32
	mov	x0, x20
	bl	_iwl_disable_interrupts
	mov	x0, x20
	bl	_iwl_pcie_synchronize_irqs
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x20
	bl	_iwl_pcie_check_hw_rf_kill
	cbnz	w21, LBB0_8
; %bb.4:
	cbz	w0, LBB0_8
LBB0_5:
Lloh6:
	adrp	x8, _ERFKILL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERFKILL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x23
	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_8:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.9:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_10:
Lloh10:
	adrp	x24, _CSR_UCODE_DRV_GP1_CLR@GOTPAGE
Lloh11:
	ldr	x24, [x24, _CSR_UCODE_DRV_GP1_CLR@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh12:
	adrp	x8, _CSR_UCODE_SW_BIT_RFKILL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CSR_UCODE_SW_BIT_RFKILL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_iwl_write32
	ldr	w1, [x24]
Lloh15:
	adrp	x8, _CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_iwl_write32
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #-1
	bl	_iwl_write32
	mov	x0, x20
	bl	_iwl_pcie_gen2_nic_init
	cbz	w0, LBB0_12
; %bb.11:
	mov	x23, x0
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_IWL_ERR
	b	LBB0_7
LBB0_12:
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _IWL_DEVICE_FAMILY_22560@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IWL_DEVICE_FAMILY_22560@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	mov	x0, x20
	mov	x1, x22
	cmp	x8, x9
	b.ge	LBB0_14
; %bb.13:
	bl	_iwl_pcie_ctxt_info_init
	b	LBB0_15
LBB0_14:
	bl	_iwl_pcie_ctxt_info_gen3_init
LBB0_15:
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.16:
	mov	x0, x20
	bl	_iwl_pcie_check_hw_rf_kill
	cbnz	w21, LBB0_7
; %bb.17:
	cbnz	w0, LBB0_5
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Exit HW not ready\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_CSR_INT,4,2                    ; @CSR_INT
	.comm	_ERFKILL,4,2                    ; @ERFKILL
l_.str.1:                               ; @.str.1
	.asciz	"Can't start_fw since the HW hasn't been started\n"

	.comm	_CSR_UCODE_DRV_GP1_CLR,4,2      ; @CSR_UCODE_DRV_GP1_CLR
	.comm	_CSR_UCODE_SW_BIT_RFKILL,4,2    ; @CSR_UCODE_SW_BIT_RFKILL
	.comm	_CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED,4,2 ; @CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED
l_.str.2:                               ; @.str.2
	.asciz	"Unable to init nic\n"

	.comm	_IWL_DEVICE_FAMILY_22560,8,3    ; @IWL_DEVICE_FAMILY_22560
.subsections_via_symbols
