	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib0090_wbd_calibration
_dib0090_wbd_calibration:               ## @dib0090_wbd_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rsi), %eax
	xorl	%ebx, %ebx
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	movl	$16, %esi
	movl	$57097, %edx                    ## imm = 0xDF09
	callq	_dib0090_write_reg
	movq	_EN_UHF@GOTPCREL(%rip), %rax
	movl	$4095, %edx                     ## imm = 0xFFF
	andl	(%rax), %edx
	movq	%r15, %rdi
	movl	$36, %esi
	callq	_dib0090_write_reg
	movl	$128, (%r14)
	movl	$90, %ebx
	jmp	LBB0_4
LBB0_3:
	movq	%r15, %rdi
	movl	$29, %esi
	callq	_dib0090_read_reg
	movl	%eax, 4(%r15)
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_dprintk
	movl	$129, (%r14)
	andb	$-3, (%r15)
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EN_UHF,4,2                     ## @EN_UHF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WBD calibration offset = %d"

	.no_dead_strip	_dib0090_wbd_calibration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib0090_wbd_calibration
_dib0090_wbd_calibration:               ; @dib0090_wbd_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	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x20
	mov	w1, #16
	mov	w2, #57097
	bl	_dib0090_write_reg
Lloh0:
	adrp	x8, _EN_UHF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EN_UHF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w2, w8, #0xfff
	mov	x0, x20
	mov	w1, #36
	bl	_dib0090_write_reg
	mov	w8, #128
	str	w8, [x19]
	mov	w0, #90
	b	LBB0_5
LBB0_3:
	mov	x0, x20
	mov	w1, #29
	bl	_dib0090_read_reg
	mov	x1, x0
	str	w0, [x20, #4]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	mov	w0, #0
	mov	w8, #129
	str	w8, [x19]
	ldr	w8, [x20]
	and	w8, w8, #0xfffffffd
	str	w8, [x20]
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EN_UHF,4,2                     ; @EN_UHF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WBD calibration offset = %d"

	.no_dead_strip	_dib0090_wbd_calibration
.subsections_via_symbols
