	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idt_create_pdev
_idt_create_pdev:                       ## @idt_create_pdev
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	addq	$8, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kmalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, 16(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	%rbx, %rdi
	callq	_idt_get_fw_data
	movq	_CSR_DWE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_CSR_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	4(%r14), %edi
	movq	_I2C_FUNC_SMBUS_PEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_CCODE_PEC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_I2C_CLIENT_PEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	jmp	LBB0_4
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_3:
	movq	$0, (%rbx)
LBB0_4:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CSR_DWE,4,2                    ## @CSR_DWE
	.comm	_CSR_DEF,4,2                    ## @CSR_DEF
	.comm	_I2C_FUNC_SMBUS_PEC,4,2         ## @I2C_FUNC_SMBUS_PEC
	.comm	_CCODE_PEC,8,3                  ## @CCODE_PEC
	.comm	_I2C_CLIENT_PEC,4,2             ## @I2C_CLIENT_PEC
	.no_dead_strip	_idt_create_pdev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idt_create_pdev
_idt_create_pdev:                       ; @idt_create_pdev
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #8
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kmalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	mov	x0, x20
	bl	_idt_get_fw_data
Lloh3:
	adrp	x8, _CSR_DWE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CSR_DWE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _CSR_DEF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CSR_DEF@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
	ldr	w0, [x19, #4]
Lloh9:
	adrp	x8, _I2C_FUNC_SMBUS_PEC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_PEC@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	x0, LBB0_4
; %bb.2:
Lloh12:
	adrp	x8, _CCODE_PEC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CCODE_PEC@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x20]
Lloh15:
	adrp	x8, _I2C_CLIENT_PEC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I2C_CLIENT_PEC@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_5
LBB0_3:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_4:
	str	xzr, [x20]
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CSR_DWE,4,2                    ; @CSR_DWE
	.comm	_CSR_DEF,4,2                    ; @CSR_DEF
	.comm	_I2C_FUNC_SMBUS_PEC,4,2         ; @I2C_FUNC_SMBUS_PEC
	.comm	_CCODE_PEC,8,3                  ; @CCODE_PEC
	.comm	_I2C_CLIENT_PEC,4,2             ; @I2C_CLIENT_PEC
	.no_dead_strip	_idt_create_pdev
.subsections_via_symbols
