	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxreg_hotplug_device_create
_mlxreg_hotplug_device_create:          ## @mlxreg_hotplug_device_create
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	16(%rdi), %rdi
	movq	_KOBJ_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kobject_uevent
	xorl	%r14d, %r14d
	cmpq	$0, (%rbx)
	js	LBB0_6
## %bb.1:
	movq	8(%r15), %rdi
	callq	_dev_get_platdata
	movq	%rax, %r12
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_i2c_get_adapter
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	16(%rbx), %rsi
	movq	%rax, %rdi
	callq	_i2c_new_device
	movl	%eax, 24(%rbx)
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movl	(%r15), %edi
	movq	16(%rbx), %rax
	movslq	4(%rax), %rdx
	movq	(%r12), %rcx
	addq	(%rbx), %rcx
	movl	(%rax), %r8d
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%rbx), %rdi
	callq	_i2c_put_adapter
	movq	$0, 8(%rbx)
	jmp	LBB0_5
LBB0_2:
	movl	(%r15), %edi
	movq	(%r12), %rdx
	addq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_err
LBB0_5:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KOBJ_CHANGE,4,2                ## @KOBJ_CHANGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get adapter for bus %d\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
L_.str.1:                               ## @.str.1
	.asciz	"Failed to create client %s at bus %d at addr 0x%02x\n"

	.no_dead_strip	_mlxreg_hotplug_device_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxreg_hotplug_device_create
_mlxreg_hotplug_device_create:          ; @mlxreg_hotplug_device_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x8, _KOBJ_CHANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KOBJ_CHANGE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kobject_uevent
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_3
; %bb.1:
	ldr	x0, [x20, #8]
	bl	_dev_get_platdata
	mov	x21, x0
	ldr	x8, [x19]
	ldr	x9, [x0]
	add	x0, x9, x8
	bl	_i2c_get_adapter
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x1, [x19, #16]
	bl	_i2c_new_device
	str	w0, [x19, #24]
	cbz	w0, LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	ldr	w0, [x20]
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x2, x9, x8
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_6
LBB0_5:
	ldr	w0, [x20]
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	ldr	x10, [x21]
	add	x9, x10, x9
	ldp	w8, w2, [x8]
                                        ; kill: def $w2 killed $w2 def $x2
	sxtw	x2, w2
	stp	x9, x8, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19, #8]
	bl	_i2c_put_adapter
	str	xzr, [x19, #8]
LBB0_6:
Lloh7:
	adrp	x8, _EFAULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_KOBJ_CHANGE,4,2                ; @KOBJ_CHANGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get adapter for bus %d\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.1:                               ; @.str.1
	.asciz	"Failed to create client %s at bus %d at addr 0x%02x\n"

	.no_dead_strip	_mlxreg_hotplug_device_create
.subsections_via_symbols
