	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adis_update_scan_mode_burst
_adis_update_scan_mode_burst:           ## @adis_update_scan_mode_burst
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_iio_device_get_drvdata
	movq	%rax, %r15
	movl	(%rbx), %r12d
	movq	24(%rax), %rax
	movl	8(%rax), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movl	$2, %edi
	movl	$24, %esi
	callq	_kcalloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leal	(%rbx,%r12,4), %edi
	movl	(%r14), %esi
	callq	_kzalloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	leal	(%rbx,%r12,4), %r12d
	addl	$-4, %r12d
	movl	%r12d, %ebx
	leaq	(%rax,%rbx,8), %r13
	movq	24(%r15), %rax
	movl	(%rax), %edi
	callq	_ADIS_READ_REG
	movq	%rax, (%r14,%rbx,8)
	movq	$0, 8(%r14,%rbx,8)
	movq	8(%r15), %rax
	movq	%r13, 16(%rax)
	movabsq	$8589934600, %rcx               ## imm = 0x200000008
	movq	%rcx, (%rax)
	movq	16(%r15), %rcx
	movq	%rcx, 32(%rax)
	movl	$8, 24(%rax)
	movl	%r12d, 28(%rax)
	movq	%r15, %rdi
	callq	_spi_message_init
	movq	8(%r15), %rdi
	movq	%r15, %rsi
	callq	_spi_message_add_tail
	movq	8(%r15), %rdi
	addq	$24, %rdi
	movq	%r15, %rsi
	callq	_spi_message_add_tail
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movq	8(%r15), %rdi
	callq	_kfree
	movq	$0, 8(%r15)
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_adis_update_scan_mode_burst
.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 adis_update_scan_mode_burst
lCPI0_0:
	.long	8                               ; 0x8
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_adis_update_scan_mode_burst:           ; @adis_update_scan_mode_burst
	.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
	mov	x20, x0
	bl	_iio_device_get_drvdata
	mov	x19, x0
	ldr	w20, [x20]
	ldr	x8, [x0, #24]
	ldr	w22, [x8, #8]
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w0, #2
	mov	w1, #24
	bl	_kcalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.1:
	add	w20, w22, w20, lsl #2
	ldr	w1, [x21]
	mov	x0, x20
	bl	_kzalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_3
; %bb.2:
	sub	w20, w20, #4
	add	x21, x0, w20, uxtw #3
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	bl	_ADIS_READ_REG
	stp	x0, xzr, [x21]
	ldp	x8, x9, [x19, #8]
	str	x21, [x8, #16]
Lloh2:
	adrp	x10, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x10, lCPI0_0@PAGEOFF]
	str	d0, [x8]
	str	x9, [x8, #32]
	mov	w9, #8
	stp	w9, w20, [x8, #24]
	mov	x0, x19
	bl	_spi_message_init
	ldr	x0, [x19, #8]
	mov	x1, x19
	bl	_spi_message_add_tail
	ldr	x8, [x19, #8]
	add	x0, x8, #24
	mov	x1, x19
	bl	_spi_message_add_tail
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	ldr	x0, [x19, #8]
	bl	_kfree
	str	xzr, [x19, #8]
LBB0_4:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_adis_update_scan_mode_burst
.subsections_via_symbols
