	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zd_chip_generic_patch_6m_band  ## -- Begin function zd_chip_generic_patch_6m_band
	.p2align	4, 0x90
_zd_chip_generic_patch_6m_band:         ## @zd_chip_generic_patch_6m_band
	.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
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_ZD_CR128@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	$20, -76(%rbp)
	movq	_ZD_CR129@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	$18, -64(%rbp)
	movq	_ZD_CR130@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	$16, -52(%rbp)
	movq	_ZD_CR47@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	$30, -40(%rbp)
	cmpl	$11, %esi
	je	LBB0_2
## %bb.1:
	cmpl	$1, %ebx
	jne	LBB0_3
LBB0_2:
	movl	$18, -76(%rbp)
LBB0_3:
	movq	%r14, %rdi
	callq	_zd_chip_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%ebx, %edx
	callq	_dev_dbg_f
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_zd_iowrite16a_locked
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ZD_CR128,4,2                   ## @ZD_CR128
	.comm	_ZD_CR129,4,2                   ## @ZD_CR129
	.comm	_ZD_CR130,4,2                   ## @ZD_CR130
	.comm	_ZD_CR47,4,2                    ## @ZD_CR47
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"patching for channel %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function zd_chip_generic_patch_6m_band
lCPI0_0:
	.long	20                              ; 0x14
	.long	0                               ; 0x0
lCPI0_1:
	.long	18                              ; 0x12
	.long	0                               ; 0x0
lCPI0_2:
	.long	16                              ; 0x10
	.long	0                               ; 0x0
lCPI0_3:
	.long	30                              ; 0x1e
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_zd_chip_generic_patch_6m_band
	.p2align	2
_zd_chip_generic_patch_6m_band:         ; @zd_chip_generic_patch_6m_band
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _ZD_CR128@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZD_CR128@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [sp, #12]
Lloh8:
	adrp	x8, _ZD_CR129@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ZD_CR129@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #20]
Lloh11:
	adrp	x8, lCPI0_1@PAGE
Lloh12:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [sp, #24]
Lloh13:
	adrp	x8, _ZD_CR130@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ZD_CR130@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [sp, #32]
Lloh16:
	adrp	x8, lCPI0_2@PAGE
Lloh17:
	ldr	d0, [x8, lCPI0_2@PAGEOFF]
	stur	d0, [sp, #36]
Lloh18:
	adrp	x8, _ZD_CR47@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ZD_CR47@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [sp, #44]
Lloh21:
	adrp	x8, lCPI0_3@PAGE
Lloh22:
	ldr	d0, [x8, lCPI0_3@PAGEOFF]
	str	d0, [sp, #48]
	cmp	w1, #11
	b.eq	LBB0_2
; %bb.1:
	cmp	w20, #1
	b.ne	LBB0_3
LBB0_2:
	mov	w8, #18
	str	w8, [sp, #12]
LBB0_3:
	mov	x0, x19
	bl	_zd_chip_dev
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg_f
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_zd_iowrite16a_locked
	ldur	x8, [x29, #-24]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdrp	Lloh16, Lloh18
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdrp	Lloh11, Lloh13
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdrp	Lloh6, Lloh8
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ZD_CR128,4,2                   ; @ZD_CR128
	.comm	_ZD_CR129,4,2                   ; @ZD_CR129
	.comm	_ZD_CR130,4,2                   ; @ZD_CR130
	.comm	_ZD_CR47,4,2                    ; @ZD_CR47
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"patching for channel %d\n"

.subsections_via_symbols
