	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _ipw_write_reg16
__ipw_write_reg16:                      ## @_ipw_write_reg16
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	_IPW_INDIRECT_ADDR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	%esi, %r12d
	movl	%esi, %ebx
	subl	%r12d, %ebx
	andl	$-2, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_IPW_DEBUG_IO
	movq	_IPW_INDIRECT_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	__ipw_write32
	movq	_IPW_INDIRECT_DATA@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__ipw_write16                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IPW_INDIRECT_ADDR_MASK,4,2     ## @IPW_INDIRECT_ADDR_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" reg = 0x%8X : value = 0x%8X\n"

	.comm	_IPW_INDIRECT_ADDR,4,2          ## @IPW_INDIRECT_ADDR
	.comm	_IPW_INDIRECT_DATA,4,2          ## @IPW_INDIRECT_DATA
	.no_dead_strip	__ipw_write_reg16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _ipw_write_reg16
__ipw_write_reg16:                      ; @_ipw_write_reg16
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _IPW_INDIRECT_ADDR_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPW_INDIRECT_ADDR_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w21, w8, w1
	sub	w8, w1, w21
	and	w22, w8, #0xfffffffe
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_IO
Lloh5:
	adrp	x8, _IPW_INDIRECT_ADDR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IPW_INDIRECT_ADDR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	__ipw_write32
Lloh8:
	adrp	x8, _IPW_INDIRECT_DATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IPW_INDIRECT_DATA@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	add	w1, w8, w22
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	__ipw_write16
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IPW_INDIRECT_ADDR_MASK,4,2     ; @IPW_INDIRECT_ADDR_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" reg = 0x%8X : value = 0x%8X\n"

	.comm	_IPW_INDIRECT_ADDR,4,2          ; @IPW_INDIRECT_ADDR
	.comm	_IPW_INDIRECT_DATA,4,2          ; @IPW_INDIRECT_DATA
	.no_dead_strip	__ipw_write_reg16
.subsections_via_symbols
