	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad1938_hw_params
_ad1938_hw_params:                      ## @ad1938_hw_params
	.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	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	%rsi, %rdi
	callq	_params_format
	xorl	%ecx, %ecx
	cmpl	$130, %eax
	sete	%cl
	cmpl	$131, %eax
	movl	$3, %r14d
	cmovnel	%ecx, %r14d
	movq	_AD1938_DAC_CTRL2@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	*(%rbx)
	movq	_AD1938_DAC_WORD_LEN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	orl	%r14d, %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	_AD1938_ADC_CTRL1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	*(%rbx)
	movq	_AD1938_ADC_WORD_LEN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	orl	%r14d, %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD1938_DAC_CTRL2,4,2           ## @AD1938_DAC_CTRL2
	.comm	_AD1938_DAC_WORD_LEN_MASK,4,2   ## @AD1938_DAC_WORD_LEN_MASK
	.comm	_AD1938_ADC_CTRL1,4,2           ## @AD1938_ADC_CTRL1
	.comm	_AD1938_ADC_WORD_LEN_MASK,4,2   ## @AD1938_ADC_WORD_LEN_MASK
	.no_dead_strip	_ad1938_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad1938_hw_params
_ad1938_hw_params:                      ; @ad1938_hw_params
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x19, [x8]
	mov	x0, x1
	bl	_params_format
	cmp	w0, #130
	cset	w8, eq
	mov	w9, #3
	cmp	w0, #131
	csel	w20, w9, w8, eq
	ldr	x8, [x19]
Lloh0:
	adrp	x21, _AD1938_DAC_CTRL2@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AD1938_DAC_CTRL2@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	blr	x8
Lloh2:
	adrp	x8, _AD1938_DAC_WORD_LEN_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AD1938_DAC_WORD_LEN_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w8, w0, w8
	orr	w2, w8, w20
	ldr	x8, [x19, #8]
	ldr	w1, [x21]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh5:
	adrp	x21, _AD1938_ADC_CTRL1@GOTPAGE
Lloh6:
	ldr	x21, [x21, _AD1938_ADC_CTRL1@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	blr	x8
Lloh7:
	adrp	x8, _AD1938_ADC_WORD_LEN_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AD1938_ADC_WORD_LEN_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w8, w0, w8
	orr	w2, w8, w20
	ldr	x8, [x19, #8]
	ldr	w1, [x21]
	mov	x0, x19
	blr	x8
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AD1938_DAC_CTRL2,4,2           ; @AD1938_DAC_CTRL2
	.comm	_AD1938_DAC_WORD_LEN_MASK,4,2   ; @AD1938_DAC_WORD_LEN_MASK
	.comm	_AD1938_ADC_CTRL1,4,2           ; @AD1938_ADC_CTRL1
	.comm	_AD1938_ADC_WORD_LEN_MASK,4,2   ; @AD1938_ADC_WORD_LEN_MASK
	.no_dead_strip	_ad1938_hw_params
.subsections_via_symbols
