	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function samsung_gpiolib_register
_samsung_gpiolib_register:              ## @samsung_gpiolib_register
	.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
	cmpl	$0, (%rsi)
	jle	LBB0_5
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rsi), %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	16(%rbx), %rsi
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	%rcx, 32(%rbx)
	movq	%r15, 24(%rbx)
	movq	%rax, 16(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_devm_gpiochip_add_data
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	addq	$40, %rbx
	cmpl	(%r14), %r13d
	jl	LBB0_2
LBB0_5:
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %r12d
	movl	16(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %ecx
	callq	_dev_err
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_samsung_gpiolib_chip,24,3      ## @samsung_gpiolib_chip
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to register gpio_chip %s, error code: %d\n"

	.no_dead_strip	_samsung_gpiolib_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function samsung_gpiolib_register
_samsung_gpiolib_register:              ; @samsung_gpiolib_register
	.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
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	w23, #0
	ldr	x8, [x1, #8]
	add	x21, x8, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	d0, [x21, #-8]
	str	d0, [x21, #16]
	str	x19, [x21, #8]
	mov	x2, x21
	ldr	d0, [x2, #-16]!
	str	d0, [x21]
	mov	x0, x19
	mov	x1, x21
	bl	_devm_gpiochip_add_data
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w23, w23, #1
	ldr	w8, [x20]
	add	x21, x21, #40
	cmp	w23, w8
	b.lt	LBB0_2
LBB0_4:
	mov	w22, #0
	b	LBB0_6
LBB0_5:
	mov	x22, x0
	ldr	w2, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x22
	bl	_dev_err
LBB0_6:
	mov	x0, x22
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_samsung_gpiolib_chip,24,3      ; @samsung_gpiolib_chip
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to register gpio_chip %s, error code: %d\n"

	.no_dead_strip	_samsung_gpiolib_register
.subsections_via_symbols
