	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_af9005_write_ofdm_registers    ## -- Begin function af9005_write_ofdm_registers
	.p2align	4, 0x90
_af9005_write_ofdm_registers:           ## @af9005_write_ofdm_registers
	.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	%ecx, %ebx
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	movl	%ecx, %esi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_deb_reg
	movq	_deb_reg@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_debug_dump
	movq	_AF9005_CMD_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AF9005_OFDM_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %r8
	movl	%ebx, %r9d
	callq	_af9005_generic_read_write
	movl	%eax, %ebx
	testl	%eax, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdi
	cmoveq	%rax, %rdi
	xorl	%eax, %eax
	callq	_deb_reg
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write %d registers %x values "

	.comm	_AF9005_CMD_WRITE,4,2           ## @AF9005_CMD_WRITE
	.comm	_AF9005_OFDM_REG,4,2            ## @AF9005_OFDM_REG
L_.str.1:                               ## @.str.1
	.asciz	"failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"ok\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_af9005_write_ofdm_registers    ; -- Begin function af9005_write_ofdm_registers
	.p2align	2
_af9005_write_ofdm_registers:           ; @af9005_write_ofdm_registers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	stp	x19, x21, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_reg
Lloh2:
	adrp	x2, _deb_reg@GOTPAGE
Lloh3:
	ldr	x2, [x2, _deb_reg@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_debug_dump
Lloh4:
	adrp	x8, _AF9005_CMD_WRITE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AF9005_CMD_WRITE@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _AF9005_OFDM_REG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AF9005_OFDM_REG@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x4, x20
	mov	x5, x19
	bl	_af9005_generic_read_write
	mov	x19, x0
Lloh10:
	adrp	x8, l_.str.1@PAGE
Lloh11:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh12:
	adrp	x9, l_.str.2@PAGE
Lloh13:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w0, #0
	csel	x0, x9, x8, eq
	bl	_deb_reg
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write %d registers %x values "

	.comm	_AF9005_CMD_WRITE,4,2           ; @AF9005_CMD_WRITE
	.comm	_AF9005_OFDM_REG,4,2            ; @AF9005_OFDM_REG
l_.str.1:                               ; @.str.1
	.asciz	"failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"ok\n"

.subsections_via_symbols
