	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_channel_integration_and_calibration
_update_channel_integration_and_calibration: ## @update_channel_integration_and_calibration
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_zd_rf_should_update_pwr_int
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.1:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_update_pwr_int
	testl	%eax, %eax
	je	LBB0_2
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	_zd_chip_is_zd1211b
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_update_ofdm_cal
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_update_pwr_cal
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	leaq	_update_channel_integration_and_calibration.ioreqs(%rip), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_zd_iowrite16a_locked
	testl	%eax, %eax
	jne	LBB0_7
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @update_channel_integration_and_calibration.ioreqs
_update_channel_integration_and_calibration.ioreqs:
	.long	128                             ## 0x80
	.long	40                              ## 0x28
	.space	8
	.long	128                             ## 0x80
	.long	42                              ## 0x2a

	.no_dead_strip	_update_channel_integration_and_calibration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_channel_integration_and_calibration
_update_channel_integration_and_calibration: ; @update_channel_integration_and_calibration
	.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	x20, x1
	mov	x19, x0
	bl	_zd_rf_should_update_pwr_int
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_update_pwr_int
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	bl	_zd_chip_is_zd1211b
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_update_ofdm_cal
	cbnz	w0, LBB0_2
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_update_pwr_cal
	cbnz	w0, LBB0_2
; %bb.6:
Lloh0:
	adrp	x20, _update_channel_integration_and_calibration.ioreqs@PAGE
Lloh1:
	add	x20, x20, _update_channel_integration_and_calibration.ioreqs@PAGEOFF
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_zd_iowrite16a_locked
	cbnz	w0, LBB0_2
LBB0_7:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @update_channel_integration_and_calibration.ioreqs
_update_channel_integration_and_calibration.ioreqs:
	.long	128                             ; 0x80
	.long	40                              ; 0x28
	.space	8
	.long	128                             ; 0x80
	.long	42                              ; 0x2a

	.no_dead_strip	_update_channel_integration_and_calibration
.subsections_via_symbols
