	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dib0090_pwm_gain_reset         ## -- Begin function dib0090_pwm_gain_reset
	.p2align	4, 0x90
_dib0090_pwm_gain_reset:                ## @dib0090_pwm_gain_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_rf_ramp_pwm_uhf@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dib0090_set_rframp_pwm
	movq	_bb_ramp_pwm_normal@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dib0090_set_bbramp_pwm
	movq	8(%rbx), %rax
	xorl	%ecx, %ecx
	cmpq	$0, (%rax)
	movl	$6144, %edx                     ## imm = 0x1800
	cmovel	%ecx, %edx
	movq	%rbx, %rdi
	movl	$50, %esi
	callq	_dib0090_write_reg
	movq	%rbx, %rdi
	movl	$57, %esi
	movl	$1024, %edx                     ## imm = 0x400
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dib0090_write_reg              ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rf_ramp_pwm_uhf,4,2            ## @rf_ramp_pwm_uhf
	.comm	_bb_ramp_pwm_normal,4,2         ## @bb_ramp_pwm_normal
	.comm	_BAND_CBAND,8,3                 ## @BAND_CBAND
	.comm	_BAND_SBAND,8,3                 ## @BAND_SBAND
	.comm	_BAND_VHF,8,3                   ## @BAND_VHF
	.comm	_bb_ramp_pwm_boost,4,2          ## @bb_ramp_pwm_boost
	.comm	_rf_ramp_pwm_cband,4,2          ## @rf_ramp_pwm_cband
	.comm	_rf_ramp_pwm_sband,4,2          ## @rf_ramp_pwm_sband
	.comm	_rf_ramp_pwm_vhf,4,2            ## @rf_ramp_pwm_vhf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dib0090_pwm_gain_reset         ; -- Begin function dib0090_pwm_gain_reset
	.p2align	2
_dib0090_pwm_gain_reset:                ; @dib0090_pwm_gain_reset
	.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
	ldr	x19, [x0]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _rf_ramp_pwm_uhf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rf_ramp_pwm_uhf@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib0090_set_rframp_pwm
Lloh3:
	adrp	x8, _bb_ramp_pwm_normal@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bb_ramp_pwm_normal@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib0090_set_bbramp_pwm
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cmp	x8, #0
	mov	w8, #6144
	csel	w2, wzr, w8, eq
	mov	x0, x19
	mov	w1, #50
	bl	_dib0090_write_reg
	mov	x0, x19
	mov	w1, #57
	mov	w2, #1024
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dib0090_write_reg
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_rf_ramp_pwm_uhf,4,2            ; @rf_ramp_pwm_uhf
	.comm	_bb_ramp_pwm_normal,4,2         ; @bb_ramp_pwm_normal
	.comm	_BAND_CBAND,8,3                 ; @BAND_CBAND
	.comm	_BAND_SBAND,8,3                 ; @BAND_SBAND
	.comm	_BAND_VHF,8,3                   ; @BAND_VHF
	.comm	_bb_ramp_pwm_boost,4,2          ; @bb_ramp_pwm_boost
	.comm	_rf_ramp_pwm_cband,4,2          ; @rf_ramp_pwm_cband
	.comm	_rf_ramp_pwm_sband,4,2          ; @rf_ramp_pwm_sband
	.comm	_rf_ramp_pwm_vhf,4,2            ; @rf_ramp_pwm_vhf
.subsections_via_symbols
