	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_trans_pcie_write_mem
_iwl_trans_pcie_write_mem:              ## @iwl_trans_pcie_write_mem
	.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	%ecx, %r15d
	movq	%rdx, %r13
	movl	%esi, %r12d
	movq	%rdi, %r14
	leaq	-48(%rbp), %rsi
	callq	_iwl_trans_grab_nic_access
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	_HBUS_TARG_MEM_WADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_iwl_write32
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.2:
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	movq	_HBUS_TARG_MEM_WDAT@GOTPCREL(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_iwl_write32
	incq	%rbx
	cmpq	%rbx, %r15
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, %edx
	testq	%r13, %r13
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13,%rbx,4), %edx
	jmp	LBB0_5
LBB0_6:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_iwl_trans_release_nic_access
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HBUS_TARG_MEM_WADDR,4,2        ## @HBUS_TARG_MEM_WADDR
	.comm	_HBUS_TARG_MEM_WDAT,4,2         ## @HBUS_TARG_MEM_WDAT
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_iwl_trans_pcie_write_mem
.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_write_mem
_iwl_trans_pcie_write_mem:              ; @iwl_trans_pcie_write_mem
	.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	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	add	x1, sp, #8
	bl	_iwl_trans_grab_nic_access
	cbz	x0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _HBUS_TARG_MEM_WADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HBUS_TARG_MEM_WADDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_iwl_write32
	cmp	w21, #1
	b.lt	LBB0_7
; %bb.2:
	mov	w21, w21
Lloh3:
	adrp	x22, _HBUS_TARG_MEM_WDAT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _HBUS_TARG_MEM_WDAT@GOTPAGEOFF]
	mov	x23, x20
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x23]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_iwl_write32
	add	x23, x23, #4
	subs	x21, x21, #1
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	x20, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w2, #0
	b	LBB0_4
LBB0_7:
	add	x1, sp, #8
	mov	x0, x19
	bl	_iwl_trans_release_nic_access
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HBUS_TARG_MEM_WADDR,4,2        ; @HBUS_TARG_MEM_WADDR
	.comm	_HBUS_TARG_MEM_WDAT,4,2         ; @HBUS_TARG_MEM_WDAT
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_iwl_trans_pcie_write_mem
.subsections_via_symbols
