	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxreg_hotplug_unset_irq
_mlxreg_hotplug_unset_irq:              ## @mlxreg_hotplug_unset_irq
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %rdi
	callq	_dev_get_platdata
	movq	%rax, %rbx
	movq	24(%rax), %r12
	movl	8(%r15), %edi
	callq	_disable_irq
	leaq	4(%r15), %rdi
	callq	_cancel_delayed_work_sync
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	movq	_MLXREG_HOTPLUG_AGGR_MASK_OFF@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	xorl	%edx, %edx
	callq	_regmap_write
LBB0_2:
	movl	(%r15), %edi
	movq	_MLXREG_HOTPLUG_AGGR_MASK_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	addq	8(%rbx), %rsi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	callq	_regmap_write
	cmpl	$0, (%rbx)
	jg	LBB0_3
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r13d
	addq	$16, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rax), %r13d
	jge	LBB0_6
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	8(%r12), %rbx
	movl	(%r15), %edi
	movq	_MLXREG_HOTPLUG_MASK_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	(%r15), %edi
	movq	_MLXREG_HOTPLUG_EVENT_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	(%r12), %r14d
	testl	%r14d, %r14d
	jle	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mlxreg_hotplug_device_destroy
	addq	$8, %rbx
	decl	%r14d
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXREG_HOTPLUG_AGGR_MASK_OFF,8,3 ## @MLXREG_HOTPLUG_AGGR_MASK_OFF
	.comm	_MLXREG_HOTPLUG_MASK_OFF,8,3    ## @MLXREG_HOTPLUG_MASK_OFF
	.comm	_MLXREG_HOTPLUG_EVENT_OFF,8,3   ## @MLXREG_HOTPLUG_EVENT_OFF
	.no_dead_strip	_mlxreg_hotplug_unset_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxreg_hotplug_unset_irq
_mlxreg_hotplug_unset_irq:              ; @mlxreg_hotplug_unset_irq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x0, [x0, #16]
	bl	_dev_get_platdata
	mov	x20, x0
	ldr	x22, [x0, #24]
	ldr	w0, [x19, #8]
	bl	_disable_irq
	add	x0, x19, #4
	bl	_cancel_delayed_work_sync
	ldr	x8, [x20, #16]
Lloh0:
	adrp	x21, _MLXREG_HOTPLUG_AGGR_MASK_OFF@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MLXREG_HOTPLUG_AGGR_MASK_OFF@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	w2, #0
	bl	_regmap_write
LBB0_2:
	ldr	w0, [x19]
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	w2, #0
	bl	_regmap_write
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	w23, #0
Lloh2:
	adrp	x24, _MLXREG_HOTPLUG_MASK_OFF@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MLXREG_HOTPLUG_MASK_OFF@GOTPAGEOFF]
Lloh4:
	adrp	x25, _MLXREG_HOTPLUG_EVENT_OFF@GOTPAGE
Lloh5:
	ldr	x25, [x25, _MLXREG_HOTPLUG_EVENT_OFF@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w23, w23, #1
	add	x22, x22, #16
	ldr	w8, [x20]
	cmp	w23, w8
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x21, [x22, #8]
	ldr	w0, [x19]
	ldr	x8, [x21]
	ldr	x9, [x24]
	add	x1, x9, x8
	mov	w2, #0
	bl	_regmap_write
	ldr	w0, [x19]
	ldr	x8, [x21]
	ldr	x9, [x25]
	add	x1, x9, x8
	mov	w2, #0
	bl	_regmap_write
	ldr	w26, [x22]
	cmp	w26, #1
	b.lt	LBB0_4
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x21
	bl	_mlxreg_hotplug_device_destroy
	add	x21, x21, #8
	subs	w26, w26, #1
	b.ne	LBB0_6
	b	LBB0_4
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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXREG_HOTPLUG_AGGR_MASK_OFF,8,3 ; @MLXREG_HOTPLUG_AGGR_MASK_OFF
	.comm	_MLXREG_HOTPLUG_MASK_OFF,8,3    ; @MLXREG_HOTPLUG_MASK_OFF
	.comm	_MLXREG_HOTPLUG_EVENT_OFF,8,3   ; @MLXREG_HOTPLUG_EVENT_OFF
	.no_dead_strip	_mlxreg_hotplug_unset_irq
.subsections_via_symbols
