	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sysfs_show_reg
_sysfs_show_reg:                        ## @sysfs_show_reg
	.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
	movl	%ecx, %ebx
	movq	%rdx, %r14
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	_DPOT_ADDR_OTP_EN@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_1
## %bb.6:
	movq	_DPOT_RDAC_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	8(%r15), %esi
	movl	%ebx, %edi
	callq	_test_bit
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
LBB0_1:
	movq	%r15, %r13
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_dpot_read
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_mutex_unlock
	testl	%r12d, %r12d
	js	LBB0_7
## %bb.2:
	movq	_DPOT_REG_TOL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.3:
	movzwl	%r12w, %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	jmp	LBB0_4
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	andl	(%r15), %r12d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DPOT_ADDR_OTP_EN,4,2           ## @DPOT_ADDR_OTP_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.comm	_DPOT_RDAC_MASK,4,2             ## @DPOT_RDAC_MASK
L_.str.1:                               ## @.str.1
	.asciz	"enabled"

L_.str.2:                               ## @.str.2
	.asciz	"disabled"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DPOT_REG_TOL,4,2               ## @DPOT_REG_TOL
L_.str.3:                               ## @.str.3
	.asciz	"0x%04x\n"

L_.str.4:                               ## @.str.4
	.asciz	"%u\n"

	.no_dead_strip	_sysfs_show_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sysfs_show_reg
_sysfs_show_reg:                        ; @sysfs_show_reg
	.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	x20, x3
	mov	x19, x2
	bl	_dev_get_drvdata
	mov	x21, x0
Lloh0:
	adrp	x8, _DPOT_ADDR_OTP_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPOT_ADDR_OTP_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _DPOT_RDAC_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DPOT_RDAC_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w0, w8, w20
	ldr	w1, [x21, #8]
	bl	_test_bit
Lloh6:
	adrp	x8, l_.str.1@PAGE
Lloh7:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh8:
	adrp	x9, l_.str.2@PAGE
Lloh9:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	bl	_sprintf
LBB0_3:
	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_4:
	add	x23, x21, #4
	mov	x0, x23
	bl	_mutex_lock
	mov	x0, x21
	mov	x1, x20
	bl	_dpot_read
	mov	x22, x0
	mov	x0, x23
	bl	_mutex_unlock
	tbnz	w22, #31, LBB0_7
; %bb.5:
Lloh12:
	adrp	x8, _DPOT_REG_TOL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DPOT_REG_TOL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.6:
	and	w8, w22, #0xffff
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_2
LBB0_7:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_8:
	ldr	w8, [x21]
	and	w8, w8, w22
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_DPOT_ADDR_OTP_EN,4,2           ; @DPOT_ADDR_OTP_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.comm	_DPOT_RDAC_MASK,4,2             ; @DPOT_RDAC_MASK
l_.str.1:                               ; @.str.1
	.asciz	"enabled"

l_.str.2:                               ; @.str.2
	.asciz	"disabled"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DPOT_REG_TOL,4,2               ; @DPOT_REG_TOL
l_.str.3:                               ; @.str.3
	.asciz	"0x%04x\n"

l_.str.4:                               ; @.str.4
	.asciz	"%u\n"

	.no_dead_strip	_sysfs_show_reg
.subsections_via_symbols
