	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxreg_io_attr_store
_mlxreg_io_attr_store:                  ## @mlxreg_io_attr_store
	.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	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr
	movq	_MLXREG_IO_ATT_SIZE@GOTPCREL(%rip), %rcx
	cmpq	%r15, (%rcx)
	jae	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_2:
	movslq	(%rax), %r12
	movq	8(%r14), %rax
	shlq	$2, %r12
	addq	8(%rax), %r12
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_kstrtou32
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %edx
	leaq	-44(%rbp), %r8
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_mlxreg_io_get_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	movl	-44(%rbp), %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%r15d, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXREG_IO_ATT_SIZE,8,3         ## @MLXREG_IO_ATT_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bus access error\n"

	.no_dead_strip	_mlxreg_io_attr_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxreg_io_attr_store
_mlxreg_io_attr_store:                  ; @mlxreg_io_attr_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x22
	bl	_to_sensor_dev_attr
Lloh0:
	adrp	x8, _MLXREG_IO_ATT_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXREG_IO_ATT_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x19
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_2:
	ldrsw	x22, [x0]
	ldr	x8, [x20, #8]
	ldr	x23, [x8, #8]
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x19
	bl	_kstrtou32
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.3:
	add	x22, x23, x22, lsl #2
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	ldr	w2, [sp, #12]
	add	x4, sp, #8
	mov	x1, x22
	mov	w3, #0
	bl	_mlxreg_io_get_reg
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	ldr	w1, [x22]
	ldr	w2, [sp, #8]
	bl	_regmap_write
	mov	x21, x0
	cbz	w0, LBB0_7
LBB0_5:
	ldr	x0, [x20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	mov	x21, x19
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXREG_IO_ATT_SIZE,8,3         ; @MLXREG_IO_ATT_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bus access error\n"

	.no_dead_strip	_mlxreg_io_attr_store
.subsections_via_symbols
