	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxreg_hotplug_attr_show
_mlxreg_hotplug_attr_show:              ## @mlxreg_hotplug_attr_show
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movslq	(%rax), %r12
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movslq	4(%rax), %rbx
	movq	8(%r15), %rdi
	callq	_dev_get_platdata
	movq	(%rax), %r13
	leaq	(%rbx,%rbx,2), %rbx
	movq	16(%r13,%rbx,8), %r14
	movl	(%r15), %edi
	movl	4(%r14,%r12,8), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	cmpq	$0, 8(%r13,%rbx,8)
	je	LBB0_3
## %bb.2:
	movl	-44(%rbp), %edx
	andl	(%r14,%r12,8), %edx
	jmp	LBB0_6
LBB0_3:
	movl	(%r14,%r12,8), %eax
	andl	-44(%rbp), %eax
	cmpq	$0, (%r13,%rbx,8)
	je	LBB0_5
## %bb.4:
	xorl	%edx, %edx
	testl	%eax, %eax
	sete	%dl
	jmp	LBB0_6
LBB0_5:
	xorl	%edx, %edx
	testl	%eax, %eax
	setne	%dl
LBB0_6:
	movl	%edx, -44(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_sprintf
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u\n"

	.no_dead_strip	_mlxreg_hotplug_attr_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxreg_hotplug_attr_show
_mlxreg_hotplug_attr_show:              ; @mlxreg_hotplug_attr_show
	.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, x2
	mov	x20, x1
	bl	_dev_get_drvdata
	mov	x21, x0
	mov	x0, x20
	bl	_to_sensor_dev_attr_2
	ldrsw	x23, [x0]
	mov	x0, x20
	bl	_to_sensor_dev_attr_2
	ldrsw	x20, [x0, #4]
	ldr	x0, [x21, #8]
	bl	_dev_get_platdata
	ldr	x22, [x0]
	mov	w8, #24
	madd	x8, x20, x8, x22
	ldr	x8, [x8, #16]
	add	x23, x8, x23, lsl #3
	ldr	w0, [x21]
	ldr	w1, [x23, #4]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_7
; %bb.1:
	mov	w8, #24
	madd	x8, x20, x8, x22
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x23]
	ldr	w9, [sp, #12]
	and	w2, w9, w8
	b	LBB0_6
LBB0_3:
	mov	w8, #24
	mul	x8, x20, x8
	ldr	x9, [x22, x8]
	ldr	w8, [sp, #12]
	ldr	w10, [x23]
	and	w8, w10, w8
	cmp	w8, #0
	cbz	x9, LBB0_5
; %bb.4:
	cset	w2, eq
	b	LBB0_6
LBB0_5:
	cset	w2, ne
LBB0_6:
	str	w2, [sp, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sprintf
LBB0_7:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u\n"

	.no_dead_strip	_mlxreg_hotplug_attr_show
.subsections_via_symbols
