	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _ipw_write_indirect
__ipw_write_indirect:                   ## @_ipw_write_indirect
	.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, %r13d
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_IPW_INDIRECT_ADDR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	%esi, %r15d
	leaq	L_.str(%rip), %rdi
	callq	_IPW_DEBUG_IO
	testl	%r13d, %r13d
	jle	LBB0_15
## %bb.1:
	subl	%r15d, %ebx
	movl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	_IPW_INDIRECT_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	__ipw_write32
	cmpl	$3, %ebx
	jg	LBB0_3
## %bb.4:
	movslq	%ebx, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_IPW_INDIRECT_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	__ipw_write8
	leal	-1(%r13), %eax
	addq	$4, %r12
	cmpq	$2, %rbx
	jg	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpl	$1, %r13d
	movl	%eax, %r13d
	jne	LBB0_5
	jmp	LBB0_7
LBB0_3:
	movl	%r13d, %eax
LBB0_7:
	addl	$4, %r15d
	movl	%eax, %r13d
LBB0_8:
	movq	_IPW_AUTOINC_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	__ipw_write32
	cmpl	$4, %r13d
	jb	LBB0_11
## %bb.9:
	movq	_IPW_AUTOINC_DATA@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	__ipw_write32
	addq	$16, %r12
	addl	$4, %r15d
	addl	$-4, %r13d
	cmpl	$3, %r13d
	ja	LBB0_10
LBB0_11:
	movl	%r13d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movq	_IPW_INDIRECT_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	__ipw_write32
	testl	%r13d, %r13d
	je	LBB0_15
## %bb.13:
	movl	%r13d, %r15d
	xorl	%ebx, %ebx
	movq	_IPW_INDIRECT_DATA@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	movl	(%r12,%rbx,4), %edx
	movq	%r14, %rdi
	callq	__ipw_write8
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_14
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPW_INDIRECT_ADDR_MASK,4,2     ## @IPW_INDIRECT_ADDR_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"addr = %i, buf = %p, num = %i\n"

	.comm	_IPW_INDIRECT_ADDR,4,2          ## @IPW_INDIRECT_ADDR
	.comm	_IPW_INDIRECT_DATA,8,3          ## @IPW_INDIRECT_DATA
	.comm	_IPW_AUTOINC_ADDR,4,2           ## @IPW_AUTOINC_ADDR
	.comm	_IPW_AUTOINC_DATA,4,2           ## @IPW_AUTOINC_DATA
	.no_dead_strip	__ipw_write_indirect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _ipw_write_indirect
__ipw_write_indirect:                   ; @_ipw_write_indirect
	.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	x21, x3
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _IPW_INDIRECT_ADDR_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPW_INDIRECT_ADDR_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_IO
	cmp	w21, #1
	b.lt	LBB0_15
; %bb.1:
	and	w22, w22, w23
	sub	w23, w23, w22
	mov	x0, x23
	bl	_unlikely
Lloh5:
	adrp	x24, _IPW_INDIRECT_ADDR@GOTPAGE
Lloh6:
	ldr	x24, [x24, _IPW_INDIRECT_ADDR@GOTPAGEOFF]
	cbz	x0, LBB0_8
; %bb.2:
	ldr	w1, [x24]
	mov	x0, x20
	mov	x2, x22
	bl	__ipw_write32
	cmp	w23, #3
	b.gt	LBB0_6
; %bb.3:
	sxtw	x23, w23
Lloh7:
	adrp	x25, _IPW_INDIRECT_DATA@GOTPAGE
Lloh8:
	ldr	x25, [x25, _IPW_INDIRECT_DATA@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	add	x1, x23, x8
	ldr	w2, [x19], #4
	mov	x0, x20
	bl	__ipw_write8
	sub	w8, w21, #1
	cmp	x23, #2
	b.gt	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	cmp	w21, #1
	mov	x21, x8
	b.ne	LBB0_4
	b	LBB0_7
LBB0_6:
	mov	x8, x21
LBB0_7:
	add	w22, w22, #4
	mov	x21, x8
LBB0_8:
Lloh9:
	adrp	x8, _IPW_AUTOINC_ADDR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IPW_AUTOINC_ADDR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	__ipw_write32
	cmp	w21, #4
	b.lo	LBB0_11
; %bb.9:
Lloh12:
	adrp	x23, _IPW_AUTOINC_DATA@GOTPAGE
Lloh13:
	ldr	x23, [x23, _IPW_AUTOINC_DATA@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	ldr	w2, [x19], #16
	mov	x0, x20
	bl	__ipw_write32
	add	w22, w22, #4
	sub	w21, w21, #4
	cmp	w21, #3
	b.hi	LBB0_10
LBB0_11:
	mov	x0, x21
	bl	_unlikely
	cbz	x0, LBB0_15
; %bb.12:
	ldr	w1, [x24]
	mov	x0, x20
	mov	x2, x22
	bl	__ipw_write32
	cbz	w21, LBB0_15
; %bb.13:
	mov	x22, #0
	mov	w21, w21
Lloh14:
	adrp	x23, _IPW_INDIRECT_DATA@GOTPAGE
Lloh15:
	ldr	x23, [x23, _IPW_INDIRECT_DATA@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x1, x22, x8
	ldr	w2, [x19, x22, lsl #2]
	mov	x0, x20
	bl	__ipw_write8
	add	x22, x22, #1
	cmp	x21, x22
	b.ne	LBB0_14
LBB0_15:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IPW_INDIRECT_ADDR_MASK,4,2     ; @IPW_INDIRECT_ADDR_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"addr = %i, buf = %p, num = %i\n"

	.comm	_IPW_INDIRECT_ADDR,4,2          ; @IPW_INDIRECT_ADDR
	.comm	_IPW_INDIRECT_DATA,8,3          ; @IPW_INDIRECT_DATA
	.comm	_IPW_AUTOINC_ADDR,4,2           ; @IPW_AUTOINC_ADDR
	.comm	_IPW_AUTOINC_DATA,4,2           ; @IPW_AUTOINC_DATA
	.no_dead_strip	__ipw_write_indirect
.subsections_via_symbols
