	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hwmon_genattr
_hwmon_genattr:                         ## @hwmon_genattr
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movl	%r8d, %r12d
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %r13
	movl	%edx, %edi
	movl	%ecx, %esi
	callq	_is_string_attr
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	testq	%r15, %r15
	je	LBB0_1
## %bb.3:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	callq	*(%r13)
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movl	%eax, %r15d
	movq	%r13, %rax
	testl	$292, %r15d                     ## imm = 0x124
	je	LBB0_7
## %bb.5:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.6:
	cmpl	$0, 16(%rax)
	jne	LBB0_7
	jmp	LBB0_12
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_11:
	cmpl	$0, 12(%rax)
	je	LBB0_12
LBB0_7:
	testb	$-110, %r15b
	je	LBB0_9
## %bb.8:
	cmpl	$0, 8(%rax)
	je	LBB0_12
LBB0_9:
	movl	%ebx, %r13d
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.13:
	movq	%rax, %rbx
	movq	_hwmon_chip@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	movl	%r15d, -76(%rbp)                ## 4-byte Spill
	je	LBB0_15
## %bb.14:
	movq	(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movslq	%r12d, %r15
	movl	%r13d, %edi
	callq	_hwmon_attr_base
	addq	%rax, %r15
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$8, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_scnprintf
	movq	(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_15:
	movl	%r13d, 8(%rbx)
	movl	%r14d, 48(%rbx)
	movl	%r12d, 12(%rbx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%rbx)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_16
## %bb.17:
	movq	_hwmon_attr_show@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_16:
	movq	_hwmon_attr_show_string@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	movq	%rbx, %r14
	addq	$16, %r14
	movl	%eax, 36(%rbx)
	movq	_hwmon_attr_store@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%r14, %rdi
	callq	_sysfs_attr_init
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%rbx)
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_hwmon_chip,4,2                 ## @hwmon_chip
	.comm	_hwmon_attr_show_string,4,2     ## @hwmon_attr_show_string
	.comm	_hwmon_attr_show,4,2            ## @hwmon_attr_show
	.comm	_hwmon_attr_store,4,2           ## @hwmon_attr_store
	.no_dead_strip	_hwmon_genattr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hwmon_genattr
_hwmon_genattr:                         ; @hwmon_genattr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x6
	mov	x19, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x26, x0
	mov	x0, x2
	mov	x1, x3
	bl	_is_string_attr
	cbz	x19, LBB0_5
; %bb.1:
	mov	x25, x0
	ldr	x8, [x20]
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	blr	x8
	cbz	w0, LBB0_5
; %bb.2:
	mov	x24, x0
	mov	w8, #292
	tst	w0, w8
	b.eq	LBB0_7
; %bb.3:
	cbz	w25, LBB0_6
; %bb.4:
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_7
	b	LBB0_13
LBB0_5:
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_15
LBB0_6:
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_13
LBB0_7:
	mov	w8, #146
	tst	w24, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_13
LBB0_9:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x26
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_14
; %bb.10:
	mov	x26, x0
Lloh5:
	adrp	x8, _hwmon_chip@GOTPAGE
Lloh6:
	ldr	x8, [x8, _hwmon_chip@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w23
	b.eq	LBB0_12
; %bb.11:
	ldr	x27, [x26]
	mov	x0, x23
	bl	_hwmon_attr_base
	add	x3, x0, w21, sxtw
	mov	x0, x27
	mov	w1, #8
	mov	x2, x19
	bl	_scnprintf
	ldr	x19, [x26]
LBB0_12:
	str	w22, [x26, #48]
	stp	w23, w21, [x26, #8]
Lloh8:
	adrp	x8, _hwmon_attr_show_string@GOTPAGE
Lloh9:
	ldr	x8, [x8, _hwmon_attr_show_string@GOTPAGEOFF]
	str	x20, [x26, #40]
Lloh10:
	adrp	x9, _hwmon_attr_show@GOTPAGE
Lloh11:
	ldr	x9, [x9, _hwmon_attr_show@GOTPAGEOFF]
	cmp	w25, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	add	x20, x26, #16
Lloh12:
	adrp	x9, _hwmon_attr_store@GOTPAGE
Lloh13:
	ldr	x9, [x9, _hwmon_attr_store@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x26, #32]
	mov	x0, x20
	bl	_sysfs_attr_init
	str	x19, [x26, #16]
	str	w24, [x26, #24]
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_hwmon_chip,4,2                 ; @hwmon_chip
	.comm	_hwmon_attr_show_string,4,2     ; @hwmon_attr_show_string
	.comm	_hwmon_attr_show,4,2            ; @hwmon_attr_show
	.comm	_hwmon_attr_store,4,2           ; @hwmon_attr_store
	.no_dead_strip	_hwmon_genattr
.subsections_via_symbols
