	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hwmon_device_register          ## -- Begin function hwmon_device_register
	.p2align	4, 0x90
_hwmon_device_register:                 ## @hwmon_device_register
	.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	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_hwmon_idr@GOTPCREL(%rip), %r13
	movq	_idr_lock@GOTPCREL(%rip), %r15
	leaq	-44(%rbp), %r12
	movq	_EAGAIN@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_idr_pre_get
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_spin_lock
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_idr_get_new
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_spin_unlock
	xorl	%edi, %edi
	movl	(%r14), %eax
	addl	%ebx, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
## %bb.4:
	movl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	%ebx, %edi
	jmp	LBB0_6
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_6:
	callq	_ERR_PTR
	movq	%rax, %rbx
LBB0_9:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_MAX_ID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%eax, -44(%rbp)
	movq	_hwmon_class@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_MKDEV
	movq	_HWMON_ID_FORMAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	-44(%rbp), %r9d
	movl	%ebx, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_device_create
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_idr_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movl	-44(%rbp), %esi
	movq	_hwmon_idr@GOTPCREL(%rip), %rdi
	callq	_idr_remove
	movq	%r14, %rdi
	callq	_spin_unlock
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_hwmon_idr,4,2                  ## @hwmon_idr
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_idr_lock,4,2                   ## @idr_lock
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_MAX_ID_MASK,4,2                ## @MAX_ID_MASK
	.comm	_hwmon_class,4,2                ## @hwmon_class
	.comm	_HWMON_ID_FORMAT,4,2            ## @HWMON_ID_FORMAT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hwmon_device_register          ; -- Begin function hwmon_device_register
	.p2align	2
_hwmon_device_register:                 ; @hwmon_device_register
	.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, x0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	adrp	x20, _hwmon_idr@GOTPAGE
Lloh3:
	ldr	x20, [x20, _hwmon_idr@GOTPAGEOFF]
Lloh4:
	adrp	x21, _idr_lock@GOTPAGE
Lloh5:
	ldr	x21, [x21, _idr_lock@GOTPAGEOFF]
Lloh6:
	adrp	x24, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x24, [x24, _EAGAIN@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	bl	_idr_pre_get
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_spin_lock
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, #0
	bl	_idr_get_new
	mov	x22, x0
	mov	x0, x21
	bl	_spin_unlock
	ldr	w8, [x24]
	cmn	w22, w8
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_1
; %bb.3:
	mov	x0, x22
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x22
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	bl	_ERR_PTR
	mov	x19, x0
LBB0_7:
	mov	x0, x19
	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_8:
	ldr	w8, [sp, #12]
Lloh11:
	adrp	x9, _MAX_ID_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MAX_ID_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [sp, #12]
Lloh14:
	adrp	x8, _hwmon_class@GOTPAGE
Lloh15:
	ldr	x8, [x8, _hwmon_class@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	mov	w1, #0
	bl	_MKDEV
	mov	x2, x0
Lloh17:
	adrp	x8, _HWMON_ID_FORMAT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HWMON_ID_FORMAT@GOTPAGEOFF]
Lloh19:
	ldr	w4, [x8]
	ldr	w5, [sp, #12]
	mov	x0, x20
	mov	x1, x19
	mov	x3, #0
	bl	_device_create
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.9:
Lloh20:
	adrp	x20, _idr_lock@GOTPAGE
Lloh21:
	ldr	x20, [x20, _idr_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock
	ldr	w1, [sp, #12]
Lloh22:
	adrp	x0, _hwmon_idr@GOTPAGE
Lloh23:
	ldr	x0, [x0, _hwmon_idr@GOTPAGEOFF]
	bl	_idr_remove
	mov	x0, x20
	bl	_spin_unlock
	b	LBB0_7
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_hwmon_idr,4,2                  ; @hwmon_idr
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_idr_lock,4,2                   ; @idr_lock
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_MAX_ID_MASK,4,2                ; @MAX_ID_MASK
	.comm	_hwmon_class,4,2                ; @hwmon_class
	.comm	_HWMON_ID_FORMAT,4,2            ; @HWMON_ID_FORMAT
.subsections_via_symbols
