	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zd_rf_init_rf2959              ## -- Begin function zd_rf_init_rf2959
	.p2align	4, 0x90
_zd_rf_init_rf2959:                     ## @zd_rf_init_rf2959
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_zd_rf_to_chip
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_zd_chip_is_zd1211b
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_zd_chip_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	_rf2959_init_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_rf2959_set_channel@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_rf2959_switch_radio_on@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_rf2959_switch_radio_off@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RF2959 is currently not supported for ZD1211B devices\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_rf2959_init_hw,4,2             ## @rf2959_init_hw
	.comm	_rf2959_set_channel,4,2         ## @rf2959_set_channel
	.comm	_rf2959_switch_radio_on,4,2     ## @rf2959_switch_radio_on
	.comm	_rf2959_switch_radio_off,4,2    ## @rf2959_switch_radio_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zd_rf_init_rf2959              ; -- Begin function zd_rf_init_rf2959
	.p2align	2
_zd_rf_init_rf2959:                     ; @zd_rf_init_rf2959
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_zd_rf_to_chip
	mov	x20, x0
	bl	_zd_chip_is_zd1211b
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_zd_chip_dev
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _rf2959_init_hw@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rf2959_init_hw@GOTPAGEOFF]
Lloh7:
	adrp	x9, _rf2959_set_channel@GOTPAGE
Lloh8:
	ldr	x9, [x9, _rf2959_set_channel@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
Lloh11:
	adrp	x8, _rf2959_switch_radio_on@GOTPAGE
Lloh12:
	ldr	x8, [x8, _rf2959_switch_radio_on@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _rf2959_switch_radio_off@GOTPAGE
Lloh15:
	ldr	x9, [x9, _rf2959_switch_radio_off@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RF2959 is currently not supported for ZD1211B devices\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_rf2959_init_hw,4,2             ; @rf2959_init_hw
	.comm	_rf2959_set_channel,4,2         ; @rf2959_set_channel
	.comm	_rf2959_switch_radio_on,4,2     ; @rf2959_switch_radio_on
	.comm	_rf2959_switch_radio_off,4,2    ; @rf2959_switch_radio_off
.subsections_via_symbols
