	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zd_chip_set_rts_cts_rate_locked ## -- Begin function zd_chip_set_rts_cts_rate_locked
	.p2align	4, 0x90
_zd_chip_set_rts_cts_rate_locked:       ## @zd_chip_set_rts_cts_rate_locked
	.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	%esi, %r13d
	movq	%rdi, %r14
	callq	_zd_chip_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%r13d, %edx
	callq	_dev_dbg_f
	movq	_RTSCTS_SH_RTS_PMB_TYPE@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r13d, %eax
	shll	%cl, %eax
	movq	_RTSCTS_SH_CTS_PMB_TYPE@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r13d
	orl	%eax, %r13d
	movq	_ZD_CCK_RATE_11M@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_ZD_PURE_RATE
	movq	_RTSCTS_SH_RTS_RATE@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, %r13d
	movq	_ZD_RX_CCK@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	_RTSCTS_SH_RTS_MOD_TYPE@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movl	(%r15), %edi
	callq	_ZD_PURE_RATE
	movq	_RTSCTS_SH_CTS_RATE@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, %ebx
	movl	(%r12), %esi
	movq	_RTSCTS_SH_CTS_MOD_TYPE@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	orl	%r13d, %ebx
	orl	%ebx, %esi
	movq	_CR_RTS_CTS_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_zd_iowrite32_locked            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"preamble=%x\n"

	.comm	_RTSCTS_SH_RTS_PMB_TYPE,4,2     ## @RTSCTS_SH_RTS_PMB_TYPE
	.comm	_RTSCTS_SH_CTS_PMB_TYPE,4,2     ## @RTSCTS_SH_CTS_PMB_TYPE
	.comm	_ZD_CCK_RATE_11M,4,2            ## @ZD_CCK_RATE_11M
	.comm	_RTSCTS_SH_RTS_RATE,4,2         ## @RTSCTS_SH_RTS_RATE
	.comm	_ZD_RX_CCK,4,2                  ## @ZD_RX_CCK
	.comm	_RTSCTS_SH_RTS_MOD_TYPE,4,2     ## @RTSCTS_SH_RTS_MOD_TYPE
	.comm	_RTSCTS_SH_CTS_RATE,4,2         ## @RTSCTS_SH_CTS_RATE
	.comm	_RTSCTS_SH_CTS_MOD_TYPE,4,2     ## @RTSCTS_SH_CTS_MOD_TYPE
	.comm	_CR_RTS_CTS_RATE,4,2            ## @CR_RTS_CTS_RATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zd_chip_set_rts_cts_rate_locked ; -- Begin function zd_chip_set_rts_cts_rate_locked
	.p2align	2
_zd_chip_set_rts_cts_rate_locked:       ; @zd_chip_set_rts_cts_rate_locked
	.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	x20, x1
	mov	x19, x0
	bl	_zd_chip_dev
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg_f
Lloh2:
	adrp	x8, _RTSCTS_SH_RTS_PMB_TYPE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RTSCTS_SH_RTS_PMB_TYPE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	lsl	w8, w20, w8
Lloh5:
	adrp	x9, _RTSCTS_SH_CTS_PMB_TYPE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RTSCTS_SH_CTS_PMB_TYPE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	lsl	w9, w20, w9
	orr	w20, w9, w8
Lloh8:
	adrp	x21, _ZD_CCK_RATE_11M@GOTPAGE
Lloh9:
	ldr	x21, [x21, _ZD_CCK_RATE_11M@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_ZD_PURE_RATE
Lloh10:
	adrp	x8, _RTSCTS_SH_RTS_RATE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RTSCTS_SH_RTS_RATE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	orr	w8, w20, w8
Lloh13:
	adrp	x20, _ZD_RX_CCK@GOTPAGE
Lloh14:
	ldr	x20, [x20, _ZD_RX_CCK@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh15:
	adrp	x10, _RTSCTS_SH_RTS_MOD_TYPE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _RTSCTS_SH_RTS_MOD_TYPE@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w22, w8, w9
	ldr	w0, [x21]
	bl	_ZD_PURE_RATE
Lloh18:
	adrp	x8, _RTSCTS_SH_CTS_RATE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RTSCTS_SH_CTS_RATE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	orr	w8, w22, w8
	ldr	w9, [x20]
Lloh21:
	adrp	x10, _RTSCTS_SH_CTS_MOD_TYPE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _RTSCTS_SH_CTS_MOD_TYPE@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w1, w8, w9
Lloh24:
	adrp	x8, _CR_RTS_CTS_RATE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CR_RTS_CTS_RATE@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, 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	_zd_iowrite32_locked
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"preamble=%x\n"

	.comm	_RTSCTS_SH_RTS_PMB_TYPE,4,2     ; @RTSCTS_SH_RTS_PMB_TYPE
	.comm	_RTSCTS_SH_CTS_PMB_TYPE,4,2     ; @RTSCTS_SH_CTS_PMB_TYPE
	.comm	_ZD_CCK_RATE_11M,4,2            ; @ZD_CCK_RATE_11M
	.comm	_RTSCTS_SH_RTS_RATE,4,2         ; @RTSCTS_SH_RTS_RATE
	.comm	_ZD_RX_CCK,4,2                  ; @ZD_RX_CCK
	.comm	_RTSCTS_SH_RTS_MOD_TYPE,4,2     ; @RTSCTS_SH_RTS_MOD_TYPE
	.comm	_RTSCTS_SH_CTS_RATE,4,2         ; @RTSCTS_SH_CTS_RATE
	.comm	_RTSCTS_SH_CTS_MOD_TYPE,4,2     ; @RTSCTS_SH_CTS_MOD_TYPE
	.comm	_CR_RTS_CTS_RATE,4,2            ; @CR_RTS_CTS_RATE
.subsections_via_symbols
