	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_hwmon_init
_radeon_hwmon_init:                     ## @radeon_hwmon_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, 16(%rdi)
	movl	8(%rdi), %eax
	addl	$-128, %eax
	xorl	%r14d, %r14d
	cmpl	$5, %eax
	ja	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movl	28(%rdi), %eax
	movq	_CHIP_ARUBA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.2:
	movl	(%rbx), %edi
	callq	_hwmon_device_register
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	16(%rbx), %rdi
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	callq	_PTR_ERR
	movl	%eax, %r14d
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_6
LBB0_4:
	movl	24(%rbx), %esi
	callq	_dev_set_drvdata
	movq	16(%rbx), %rdi
	movq	_hwmon_attrgroup@GOTPCREL(%rip), %rsi
	callq	_sysfs_create_group
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r15d
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movl	(%rbx), %edi
	callq	_hwmon_device_unregister
	movl	%r15d, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_ARUBA,4,2                 ## @CHIP_ARUBA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to register hwmon device: %d\n"

	.comm	_hwmon_attrgroup,4,2            ## @hwmon_attrgroup
L_.str.1:                               ## @.str.1
	.asciz	"Unable to create hwmon sysfs file: %d\n"

	.no_dead_strip	_radeon_hwmon_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_hwmon_init
_radeon_hwmon_init:                     ; @radeon_hwmon_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	xzr, [x0, #16]
	ldr	w8, [x0, #8]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #28]
Lloh0:
	adrp	x9, _CHIP_ARUBA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHIP_ARUBA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
LBB0_2:
	mov	w20, #0
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w0, [x19]
	bl	_hwmon_device_register
	str	x0, [x19, #16]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #16]
	cbz	w8, LBB0_6
; %bb.5:
	bl	_PTR_ERR
	mov	x20, x0
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_3
LBB0_6:
	ldr	w1, [x19, #24]
	bl	_dev_set_drvdata
	ldr	x0, [x19, #16]
Lloh5:
	adrp	x1, _hwmon_attrgroup@GOTPAGE
Lloh6:
	ldr	x1, [x1, _hwmon_attrgroup@GOTPAGEOFF]
	bl	_sysfs_create_group
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.7:
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	ldr	w0, [x19]
	bl	_hwmon_device_unregister
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_ARUBA,4,2                 ; @CHIP_ARUBA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to register hwmon device: %d\n"

	.comm	_hwmon_attrgroup,4,2            ; @hwmon_attrgroup
l_.str.1:                               ; @.str.1
	.asciz	"Unable to create hwmon sysfs file: %d\n"

	.no_dead_strip	_radeon_hwmon_init
.subsections_via_symbols
