	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_extcon_dev_unregister          ## -- Begin function extcon_dev_unregister
	.p2align	4, 0x90
_extcon_dev_unregister:                 ## @extcon_dev_unregister
	.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
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rdi, %r15
	movq	_extcon_dev_list_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	48(%r15), %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_mutex_unlock
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_get_device
	movl	%eax, %edi
	callq	_IS_ERR_OR_NULL
	movq	%r14, %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.15:
	callq	_dev_name
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	_device_unregister
	movq	40(%r15), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	cmpl	$0, (%r15)
	je	LBB0_8
## %bb.4:
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	movq	8(%rax,%rbx,2), %rdi
	callq	_kfree
	movq	40(%r15), %rax
	cmpq	$0, 8(%rax,%rbx)
	leaq	8(%rbx), %rbx
	jne	LBB0_6
LBB0_7:
	movq	32(%r15), %rdi
	callq	_kfree
	movq	24(%r15), %rdi
	callq	_kfree
LBB0_8:
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.9:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%r12), %rdi
	callq	_kfree
	incq	%rbx
	movslq	(%r15), %rax
	addq	$16, %r12
	cmpq	%rax, %rbx
	jl	LBB0_10
LBB0_11:
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movq	16(%r15), %rdi
	callq	_kfree
	movq	8(%r15), %rdi
	callq	_kfree
LBB0_13:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_device                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_extcon_dev_list_lock,4,2       ## @extcon_dev_list_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to unregister extcon_dev (%s)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_extcon_dev_unregister          ; -- Begin function extcon_dev_unregister
	.p2align	2
_extcon_dev_unregister:                 ; @extcon_dev_unregister
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x20, _extcon_dev_list_lock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _extcon_dev_list_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
	add	x0, x19, #48
	bl	_list_del
	mov	x0, x20
	bl	_mutex_unlock
	add	x20, x19, #4
	mov	x0, x20
	bl	_get_device
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_dev_name
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dev_err
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x20
	bl	_device_unregister
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_10
; %bb.5:
	ldr	w9, [x19]
	cbz	w9, LBB0_10
; %bb.6:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.7:
	mov	w21, #8
	mov	w22, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	x0, [x8, x22]
	bl	_kfree
	ldr	x8, [x19, #40]
	ldr	x8, [x8, x21]
	add	x22, x22, #16
	add	x21, x21, #8
	cbnz	x8, LBB0_8
LBB0_9:
	ldr	x0, [x19, #32]
	bl	_kfree
	ldr	x0, [x19, #24]
	bl	_kfree
LBB0_10:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x21, #0
	mov	x22, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x21]
	bl	_kfree
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x21, x21, #16
	cmp	x22, x8
	b.lt	LBB0_12
LBB0_13:
	cbz	w8, LBB0_15
; %bb.14:
	ldr	x0, [x19, #16]
	bl	_kfree
	ldr	x0, [x19, #8]
	bl	_kfree
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_put_device
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_extcon_dev_list_lock,4,2       ; @extcon_dev_list_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to unregister extcon_dev (%s)\n"

.subsections_via_symbols
