	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmpex_bmc_delete
_ibmpex_bmc_delete:                     ## @ibmpex_bmc_delete
	.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, %r12
	movl	24(%rdi), %edi
	movq	_sensor_dev_attr_reset_high_low@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movl	24(%r12), %edi
	movq	_sensor_dev_attr_name@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.1:
	movq	_PEX_NUM_SENSOR_FUNCS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %ecx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	%ecx, %rdx
	cmpq	%rdx, %r15
	jge	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%r13
	movslq	%eax, %rcx
	addq	$8, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r12), %rcx
	leaq	(%r15,%r15,4), %r14
	movq	32(%rcx,%r14,8), %rsi
	cmpq	$0, (%rsi,%rbx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	addq	%rbx, %rsi
	movl	24(%r12), %edi
	callq	_device_remove_file
	movq	8(%r12), %rax
	movq	32(%rax,%r14,8), %rax
	movq	(%rax,%rbx), %rdi
	callq	_kfree
	movq	_PEX_NUM_SENSOR_FUNCS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_9:
	leaq	28(%r12), %rdi
	callq	_list_del
	movl	24(%r12), %edi
	xorl	%esi, %esi
	callq	_dev_set_drvdata
	movl	20(%r12), %edi
	callq	_hwmon_device_unregister
	movl	16(%r12), %edi
	callq	_ipmi_destroy_user
	movq	8(%r12), %rdi
	callq	_kfree
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_sensor_dev_attr_reset_high_low,8,3 ## @sensor_dev_attr_reset_high_low
	.comm	_sensor_dev_attr_name,8,3       ## @sensor_dev_attr_name
	.comm	_PEX_NUM_SENSOR_FUNCS,4,2       ## @PEX_NUM_SENSOR_FUNCS
	.no_dead_strip	_ibmpex_bmc_delete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmpex_bmc_delete
_ibmpex_bmc_delete:                     ; @ibmpex_bmc_delete
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w0, [x0, #24]
Lloh0:
	adrp	x1, _sensor_dev_attr_reset_high_low@GOTPAGE
Lloh1:
	ldr	x1, [x1, _sensor_dev_attr_reset_high_low@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	w0, [x19, #24]
Lloh2:
	adrp	x1, _sensor_dev_attr_name@GOTPAGE
Lloh3:
	ldr	x1, [x1, _sensor_dev_attr_name@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x20, #0
Lloh4:
	adrp	x21, _PEX_NUM_SENSOR_FUNCS@GOTPAGE
Lloh5:
	ldr	x21, [x21, _PEX_NUM_SENSOR_FUNCS@GOTPAGEOFF]
	ldr	w8, [x21]
	mov	w22, #40
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	cmp	x20, w9, sxtw
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, #0
	mov	x24, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x24, x24, #1
	add	x23, x23, #8
	cmp	x24, w8, sxtw
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x19, #8]
	madd	x9, x20, x22, x9
	ldr	x9, [x9, #32]
	add	x1, x9, x23
	ldr	x9, [x1]
	cbz	x9, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w0, [x19, #24]
	bl	_device_remove_file
	ldr	x8, [x19, #8]
	madd	x8, x20, x22, x8
	ldr	x8, [x8, #32]
	ldr	x0, [x8, x23]
	bl	_kfree
	ldr	w8, [x21]
	b	LBB0_6
LBB0_9:
	add	x0, x19, #28
	bl	_list_del
	ldr	w0, [x19, #24]
	mov	x1, #0
	bl	_dev_set_drvdata
	ldr	w0, [x19, #20]
	bl	_hwmon_device_unregister
	ldr	w0, [x19, #16]
	bl	_ipmi_destroy_user
	ldr	x0, [x19, #8]
	bl	_kfree
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_sensor_dev_attr_reset_high_low,8,3 ; @sensor_dev_attr_reset_high_low
	.comm	_sensor_dev_attr_name,8,3       ; @sensor_dev_attr_name
	.comm	_PEX_NUM_SENSOR_FUNCS,4,2       ; @PEX_NUM_SENSOR_FUNCS
	.no_dead_strip	_ibmpex_bmc_delete
.subsections_via_symbols
