	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmpc_ipml_add
_cmpc_ipml_add:                         ## @cmpc_ipml_add
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_BACKLIGHT_PLATFORM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movl	$7, -32(%rbp)
	movl	4(%r14), %edx
	leaq	L_.str(%rip), %rdi
	movq	_cmpc_bl_ops@GOTPCREL(%rip), %rcx
	movq	%r14, %rsi
	movq	%rbx, %r8
	callq	_backlight_device_register
	movl	%eax, 8(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	8(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movq	_RFKILL_TYPE_WLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r14), %r8d
	leaq	L_.str.1(%rip), %rdi
	movq	_cmpc_rfkill_ops@GOTPCREL(%rip), %rcx
	movq	%r14, %rsi
	callq	_rfkill_alloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %rdi
	callq	_rfkill_register
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	(%r15), %rdi
	callq	_rfkill_destroy
	movq	$0, (%r15)
LBB0_7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dev_set_drvdata
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BACKLIGHT_PLATFORM,4,2         ## @BACKLIGHT_PLATFORM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmpc_bl"

	.comm	_cmpc_bl_ops,4,2                ## @cmpc_bl_ops
L_.str.1:                               ## @.str.1
	.asciz	"cmpc_rfkill"

	.comm	_RFKILL_TYPE_WLAN,4,2           ## @RFKILL_TYPE_WLAN
	.comm	_cmpc_rfkill_ops,4,2            ## @cmpc_rfkill_ops
	.no_dead_strip	_cmpc_ipml_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmpc_ipml_add
_cmpc_ipml_add:                         ; @cmpc_ipml_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kmalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh3:
	adrp	x8, _BACKLIGHT_PLATFORM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BACKLIGHT_PLATFORM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #7
	stp	w9, w8, [sp, #8]
	ldr	w2, [x20, #4]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
Lloh8:
	adrp	x3, _cmpc_bl_ops@GOTPAGE
Lloh9:
	ldr	x3, [x3, _cmpc_bl_ops@GOTPAGEOFF]
	add	x4, sp, #8
	mov	x1, x20
	bl	_backlight_device_register
	str	w0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x19, #8]
	bl	_PTR_ERR
	mov	x20, x0
	mov	x0, x19
	bl	_kfree
	b	LBB0_8
LBB0_3:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_4:
Lloh13:
	adrp	x8, _RFKILL_TYPE_WLAN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RFKILL_TYPE_WLAN@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldr	w4, [x20, #4]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh18:
	adrp	x3, _cmpc_rfkill_ops@GOTPAGE
Lloh19:
	ldr	x3, [x3, _cmpc_rfkill_ops@GOTPAGEOFF]
	mov	x1, x20
	bl	_rfkill_alloc
	str	x0, [x19]
	cbz	x0, LBB0_7
; %bb.5:
	bl	_rfkill_register
	cbz	w0, LBB0_7
; %bb.6:
	ldr	x0, [x19]
	bl	_rfkill_destroy
	str	xzr, [x19]
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	bl	_dev_set_drvdata
	mov	w20, #0
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BACKLIGHT_PLATFORM,4,2         ; @BACKLIGHT_PLATFORM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmpc_bl"

	.comm	_cmpc_bl_ops,4,2                ; @cmpc_bl_ops
l_.str.1:                               ; @.str.1
	.asciz	"cmpc_rfkill"

	.comm	_RFKILL_TYPE_WLAN,4,2           ; @RFKILL_TYPE_WLAN
	.comm	_cmpc_rfkill_ops,4,2            ; @cmpc_rfkill_ops
	.no_dead_strip	_cmpc_ipml_add
.subsections_via_symbols
